I have a website with a share on twitter button.
This website is hosted in amazon and I have a domain from GoDaddy which points to amazon.
When opening the original amazon website and sharing to twitter from there, everything works fine. But when I use the GoDaddy domain the share fails with the following error:
jquery.js:15 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src https://connect.facebook.net https://cm.g.doubleclick.net https://ssl.google-analytics.com https://graph.facebook.com https://twitter.com 'unsafe-eval' https://*.twimg.com https://api.twitter.com 'nonce-IhoQDzYbwYgE02IGEOs72A==' https://analytics.twitter.com https://publish.twitter.com https://ton.twitter.com https://syndication.twitter.com https://www.google.com https://t.tellapart.com https://platform.twitter.com https://www.google-analytics.com 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-xxbdqtqSj1t8fbsBV/njTbG/r4k1OGgYFak/ndzeHuw='), or a nonce ('nonce-...') is required to enable inline execution.
This is the original url: http://eizeenv.drqwvdcawy.us-west-2.elasticbeanstalk.com/question/aa9f407e-924f-45f1-9898-04630a9f6862
This is the GoDaddy domain: http://www.eyzze.com/question/aa9f407e-924f-45f1-9898-04630a9f6862
I have no idea what’s the problem.
Hopefully someone can help me…