Refused to connect to EBS because it violates the following Content Security Policy

I have created EBS on vercel and am trying to use it in my twitch extension. When the extension was hosted locally, there was no CSP compliance check, as far as I understand. I just had to configure CORS. When I went to the server testing stage of the extension in the extension control panel, all requests to EBS are now blocked by CSP. I specified my EBS domain in the Capabilities tab in the white list of domains, but it didn’t help. Images with CSP error and settings are attached

Check that you populated the right field in the dev console.

Check that you did this to the right extension with the right version.

There is a weird edge case where sometimes it’s stupidily cached in the browser weirdly. So can be fiddly sometimes.

So

  • local test
  • check and save CSP
  • upload new files
  • go to hosted test

See if that gets you going

Thanks for the reply! I guess it was really about the cache. I reloaded the channel page several times with ctrl+shift+R, ctrl+F5, F5 and checked disable cache in the developer tools. The error appeared unpredictably, or not, and eventually stopped appearing at all. I don’t know what exactly helped. Apparently, the whitelist of domain names is stored with an indefinite delay, so you should not change this value too often