Baroshem / nuxt-security

🛡 Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware
https://nuxt-security.vercel.app/
MIT License
810 stars 56 forks source link

Disable 05-cspSsgPresets #349

Closed vejja closed 8 months ago

vejja commented 8 months ago

Fixes #348 Fixes #335

Types of changes

Description

This patch removes the cspSsgPresets functionality to temporarily solve issues #335 and #348, while we work on an alternative solution.

This patch is required after Nuxt 3.9.3 introduced protection against importing @nuxt/kit in Nitro plugins, which breaks 05-cspSsgPresets.ts in our module.

Checklist:

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuxt-security ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2024 3:32pm
Baroshem commented 8 months ago

Some tests are not passing and was wondering if it is caused by the removing of the module or can we skip it?

vejja commented 8 months ago

Some tests are not passing and was wondering if it is caused by the removing of the module or can we skip it?

Sorry I was too quick in hitting create Tests now modified - passing alright now

Baroshem commented 8 months ago

Ok thanks for that @vejja !

I am off right now but will release a patch version in the evening with your change.