HEROKU DOCKERIZED STRAPI Content Security Policy error

So a thing to note, is that if you are hosting on heroku you can’t use localhost. I mean it’s not your machine.
So the URL should point to the URL that is used From my guide and what I wrote.

heroku config:set WEBSITE_URL=$(heroku info -a awesomestrapi -s | grep web_url | cut -d= -f2) -a awesomestrapi

This is quite important else you might get that issue.
And in the server file

module.exports = ({ env }) => ({
  url: env('WEBSITE_URL'),
  port: process.env.PORT,
});

Note here that this if for production so if you are running in development you will end up with the same problem you have now. Where it can’t connect to localhost on heroku etc and you will get CORS issues.

So check that the setup you are running is correct :slight_smile: