System Information
- Strapi Version: 4.7.1
- Operating System: Ubuntu 22.04.2 LTS
- Database: Postgres
- Node Version: v18.14.2
- NPM Version: v9.5.0
- Yarn Version: v1.22.19
I have a problem loading content. I installed strapi on an AWS server. I did everything as written in the strapi documentation. But when I run strapi it goes to the login page. Then I register and the registration is successful, but somehow the loader only spins and a toast message comes out at the top:
Warning: An error occurred
and besides that, I look at the console logs and there is an error:
Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: "script-src ‘self’"
npm run develop log:
http: GET /admin/ (21 ms) 200
http: GET /admin/project-type (8 ms) 200
http: POST /admin/renew-token (15 ms) 200
http: GET /admin/init (4 ms) 200
http: GET /admin/telemetry-properties (44 ms) 200
http: GET /admin/information (29 ms) 200
http: GET /admin/users/me/permissions (38 ms) 200
http: GET /admin/users/me (25 ms) 200
I tried a lot of things to fix this error but did not help. I’ve been working on this for a few days now. Please someone who met this problem and solved it help me!
Thank you