Skip to content

Improve CSP compatibility with colorbox theme#245

Merged
saimn merged 2 commits intosaimn:masterfrom
jasuarez:colorbox-csp
Mar 11, 2017
Merged

Improve CSP compatibility with colorbox theme#245
saimn merged 2 commits intosaimn:masterfrom
jasuarez:colorbox-csp

Conversation

@jasuarez
Copy link
Copy Markdown
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.

jasuarez added 2 commits March 5, 2017 18:47
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
Copy Markdown
Owner

saimn commented Mar 11, 2017

Great, thanks @jasuarez !

@jasuarez jasuarez deleted the colorbox-csp branch March 13, 2017 08:46
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.

2 participants