Hi all, how are you ? I have installed Discourse in a self-hosted server and I’m getting stuck on configure Discourse Ad Official Plugin (GitHub - discourse/discourse-adplugin: Official Discourse Advertising Plugin. Install & Start Serving Ads on Your Discourse Forum).
When I load any pages of my website I got a Javascript error telling me that “Access has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”
Javascript error
I’ve enable Content Security Police
I’ve set content security policy script src:
- https ://securepubads.g.doubleclick.net
- http ://securepubads.g.doubleclick.net
- https ://adservice.google.com
- https ://adservice.google.com.br
- https ://securepubads.g.doubleclick.net/tag/js/gpt.js
- https ://securepubads.g.doubleclick.net/gpt/pubads_impl_2021060901.js
I’ve set the cors origins:
- https ://securepubads.g.doubleclick.net
- http ://securepubads.g.doubleclick.net
- https ://adservice.google.com
- https ://adservice.google.com.br
I’ve been stuck trying to configure it for a days.
Could somebody help me please?
Thank you!