Fresh install of WordPress through SSH isn’t loading inline styles and JS in admin

Hi, I've installed fresh WP through SSH running on AWS E2 with Apache, on a clean instance of Ubuntu. I'm having these console errors on the frontend:

https://preview.redd.it/vrqjeurwn7kd1.png?width=1161&format=png&auto=webp&s=990e73ceaea8acad0be561e302f0c555ccf8b521

however I've already added

<IfModule mod_headers.c> Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';" </IfModule>

to my CSP header & it still does the same errors & page is in broken HTML & CSS

https://preview.redd.it/i5rzk6x3o7kd1.png?width=917&format=png&auto=webp&s=45025bc530287af841cfe16045e191e3a2c72816

In the backend when going to media or theme customizer it shows:

https://preview.redd.it/e1gqink9o7kd1.png?width=656&format=png&auto=webp&s=15217066e6d01e5580a5e7707c9e505a2fe42528

https://preview.redd.it/m3val11ao7kd1.png?width=561&format=png&auto=webp&s=4af07958f260c9ccdd87ba04f764043c05a73d3e

Please guide me as I'm a complete noob to SSH & PHP, I haven't made any additional customizations. My wordpress address & site address points to the correct URL https://verifeye.online

https://preview.redd.it/ly4q6oixo7kd1.png?width=619&format=png&auto=webp&s=8d8ad1a6013c508900d0acb45553c999cc9004ae

What am I doing wrong, and how do I troubleshoot this to fix it?

1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer