Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fancybox CSP violations (script-src violation, blocked inline) #520

Closed
dougwaldron opened this issue May 9, 2022 · 1 comment · Fixed by #521
Closed

Fancybox CSP violations (script-src violation, blocked inline) #520

dougwaldron opened this issue May 9, 2022 · 1 comment · Fixed by #521
Assignees

Comments

@dougwaldron
Copy link
Member

dougwaldron commented May 9, 2022

Raygun report https://app.raygun.com/crashreporting/258s6a2/errors/126487768971 has more details about the error

This issue is a subset of #527

@dougwaldron dougwaldron changed the title script-src violation, blocked inline Fancybox CSP violations (script-src violation, blocked inline) May 9, 2022
@dougwaldron dougwaldron self-assigned this May 9, 2022
@dougwaldron
Copy link
Member Author

The Raygun report combines multiple different CSP violations. This issue is for the Fancybox violations:

  • Fancybox adds a style element that requires allowing its hash. (NOTE: The style element and hence the hash both depend on the browser's scrollbar width, which is 17px for Chrome, Edge, and Firefox on Windows, but may be different for other browser/OS combinations.)

  • The "thumbs" option uses both inline styles and inline JavaScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant