1.1.0
1.1.0 🎉
1.1.0 is the first minor release for a stable 1.0.0 version
The biggest feature of this version is a support for runtime config by @huang-julien ❤️ Take a look at below instructions to understand how to use it in your app.
If you need to change the headers configuration at runtime, it is possible to do it through nuxt-security:headers
hook.
Enabling the option
This feature is optional, you can enable it with
export default defineNuxtConfig({
modules: ['nuxt-security'],
security: {
runtimeHooks: true
}
})
Within your nitro plugin. You can override the previous configuration of a route with nuxt-security:headers
.
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('nuxt-security:ready', () => {
nitroApp.hooks.callHook('nuxt-security:headers', '/**' ,{
contentSecurityPolicy: {
"script-src": ["'self'", "'unsafe-inline'"],
},
xFrameOptions: false
})
})
})
And also, huge kudos to all contributors 🎉
🗞️ Next steps
We are already planning a release 1.2.0 with additional cool features. Stay tuned! 🚀
👉 Changelog
compare changes
🚀 Enhancements
- allow configuring headers in runtime
- improving performance for SSG apps by cheerio optimizations
🩹 Fixes
- disable 05-cspSsgPresets
📖 Documentation
- correct default for crossOriginEmbedderPolicy
- add new video and introduction page
- add favicon fix
🏡 Chore
🤖 CI
❤️ Contributors
- vejja (@vejja)
- Jonas Thelemann (@dargmuesli)
- @CMarzin
- @AfganAbbas
- @huang-julien
- @felix-dolderer
What's Changed
- ADD favicon fix #332 by @CMarzin in #345
- Disable 05-cspSsgPresets by @vejja in #349
- docs: add new video and introduction page by @AfganAbbas in #350
- feat: allow configuring headers in runtime by @huang-julien in #298
- docs: correct default for crossOriginEmbedderPolicy by @felix-dolderer in #353
- Patch for cheerio performance by @vejja in #354
- Further optimization patch for cheerio by @vejja in #358
- Chore/1.1.0 by @Baroshem in #347
New Contributors
- @CMarzin made their first contribution in #345
- @AfganAbbas made their first contribution in #350
- @huang-julien made their first contribution in #298
- @felix-dolderer made their first contribution in #353