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

Improve CSP compatibility with colorbox theme #245

Merged
merged 2 commits into from Mar 11, 2017

Conversation

jasuarez
Copy link
Contributor

@jasuarez jasuarez commented Mar 5, 2017

This fix for colorbox theme helps to improve CSP compatibility.

Main problem is that CSP makes harder to work with static inline code, which is used in the theme.

So basically we move that code to external files, and load it in the template.

This can be considered part of fix for issue #178, at least for colorbox theme. But I think this very same idea can be applied to the other themes.

This was done for Galleria theme in commit 96d6623.
Main purpose is to fix problems with Content Security Policy, that makes
difficult to work with inline code.
@saimn saimn merged commit 23d0ede into saimn:master Mar 11, 2017
@saimn saimn added this to the 1.4.0 milestone Mar 11, 2017
@saimn
Copy link
Owner

saimn commented Mar 11, 2017

Great, thanks @jasuarez !

@jasuarez jasuarez deleted the colorbox-csp branch March 13, 2017 08:46
kontza pushed a commit to kontza/sigal that referenced this pull request Aug 28, 2020
Improve CSP compatibility with colorbox theme
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 this pull request may close these issues.

None yet

2 participants