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: trim minified script #268

Merged
merged 1 commit into from
Jun 24, 2024
Merged

fix: trim minified script #268

merged 1 commit into from
Jun 24, 2024

Conversation

Gerbuuun
Copy link
Contributor

@Gerbuuun Gerbuuun commented Jun 22, 2024

Possibly resolves #266 #267 #228

see my comments in #266

@danielroe
Copy link
Collaborator

This seems likely a bug in Nuxt security module but I don’t see a harm in this hotfix.

@Gerbuuun
Copy link
Contributor Author

Would be better if this could be achieved in the minification build step itself.

I'll raise the issue with nuxt-security

@Gerbuuun
Copy link
Contributor Author

They already had a fix ready (Baroshem/nuxt-security#478).
You can dismiss this PR if you think it is not necessary

@danielroe
Copy link
Collaborator

This PR is good (though the underlying bug in the regexp in nuxt-security does need to be fixed as well.)

@danielroe danielroe merged commit 0ccbc5c into nuxt-modules:main Jun 24, 2024
6 checks passed
@Gerbuuun
Copy link
Contributor Author

A new version of nuxt-security has been released with the previously linked PR. It works now!

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.

feat: link script in head for CSP 'self' compliance in v3
2 participants