Reproduce steps:
- In Chrome, go to https://myapp-domain.com/login?shop=abc.myshopify.com
- You will see an error in DevTools console:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https:". Either the 'unsafe-inline' keyword, a hash ('sha256-sometokenhere='), or a nonce ('nonce-...') is required to enable inline execution
This happens in Rails 5.2 (for example I use 5.2.0.beta2) and is due to a new security feature in Rails 5.2: rails/rails#31162
Reproduce steps:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https:". Either the 'unsafe-inline' keyword, a hash ('sha256-sometokenhere='), or a nonce ('nonce-...') is required to enable inline executionThis happens in Rails 5.2 (for example I use
5.2.0.beta2) and is due to a new security feature in Rails 5.2: rails/rails#31162