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

Fix csp issues by introducing a new $kirby->nonce() method #1527 #2215

Merged
merged 1 commit into from Oct 15, 2019

Conversation

bastianallgeier
Copy link
Member

Describe the PR

The Kirby class now has a new $kirby->nonce() which returns the nonce used for all external and inline scripts + svg + stylesheets). You can use this to set your own CSP and the panel will still work

Related issues

@distantnative
Copy link
Member

@bastianallgeier don't we need to add it to our headers/CSP for it to have any effect?

@bastianallgeier
Copy link
Member Author

I thought the last decision was to not set any CSP but implement the nonce in case you want to roll your own CSP.

@distantnative
Copy link
Member

Understood. And a bit embarrassed cause in the link issue my post is the one summarizing what to do as our collective decision exactly as you implemented it XD

@bastianallgeier bastianallgeier merged commit 7a5db03 into develop Oct 15, 2019
@bastianallgeier bastianallgeier deleted the fix/1527-csp-issues branch October 15, 2019 14:00
@bastianallgeier bastianallgeier added this to the 3.3.0 milestone Oct 15, 2019
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