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

Use nonce attribute when loading scripts #162

Closed
3 of 6 tasks
Uzlopak opened this issue Nov 23, 2021 · 0 comments · Fixed by ory/kratos#2096
Closed
3 of 6 tasks

Use nonce attribute when loading scripts #162

Uzlopak opened this issue Nov 23, 2021 · 0 comments · Fixed by ory/kratos#2096
Labels
feat New feature or request.

Comments

@Uzlopak
Copy link

Uzlopak commented Nov 23, 2021

Preflight checklist

Describe your problem

In the handlebar template for scripts you could add a nonce attribute and also at the same time use CSP header to only allow the scripts to be loaded which have the correct nonce.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-nonce

Describe your ideal solution

Implement nonce in scripts and set CSP header accordinly.

Workarounds or alternatives

None known

Version

current

Additional Context

No response

@Uzlopak Uzlopak added the feat New feature or request. label Nov 23, 2021
aeneasr added a commit to ory/kratos that referenced this issue Jan 2, 2022
aeneasr added a commit to ory/kratos that referenced this issue Jan 2, 2022
peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this issue Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant