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

Content Security Policy #97

Open
stieben opened this issue Apr 23, 2021 · 1 comment
Open

Content Security Policy #97

stieben opened this issue Apr 23, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed need more info

Comments

@stieben
Copy link

stieben commented Apr 23, 2021

Content-Security-Policy is the name of a HTTP response header that modern browsers use to enhance the security of the document (or web page). The Content-Security-Policy header allows you to restrict how resources such as JavaScript, CSS, or pretty much anything that the browser loads.

If I am not mistaken, the only way to make the CSS output of nuxt-buefy currently work with a CSP setup would be through the 'unsafe-inline' setting. I see two ways to enhance security here:

  1. Transfer the CSS output to a separate file.
  2. Add the hash of the inline style to the HTTP response header.

Regarding 2, I'm a bit clueless if that would be done in nuxt-buefy or via Webpack or in Nuxt itself somehow.

Does any of that make sense?

@wesdevpro
Copy link
Member

@stieben @kikuomax Not to me. This flew right over my head 😂 But with some digging and help I'm sure I could make sense of this issue. Security is Key. I will be investigating this further. Feel free to reach out to me on the Buefy official discord. Thanks!

@wesdevpro wesdevpro self-assigned this Oct 7, 2023
@wesdevpro wesdevpro added enhancement New feature or request help wanted Extra attention is needed need more info labels Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed need more info
Projects
None yet
Development

No branches or pull requests

2 participants