N
Nuxt3w ago
Ivan

nuxt-security. strict-transport-security

Hello. I found an error in the module related to the "strict-transport-security" header setting. When checking the site settings, an "Invalid syntax" error occurs.
security: {
headers: {
contentSecurityPolicy: {
'img-src': ["'self'", 'data:'],
},
strictTransportSecurity: {
maxAge: 63072000,
includeSubdomains: true,
preload: true,
},
permissionsPolicy: {
geolocation: ['self'],
},
},
},
security: {
headers: {
contentSecurityPolicy: {
'img-src': ["'self'", 'data:'],
},
strictTransportSecurity: {
maxAge: 63072000,
includeSubdomains: true,
preload: true,
},
permissionsPolicy: {
geolocation: ['self'],
},
},
},
Can someone tell me about the problem and how to solve it?
No description
3 Replies
kapa.ai
kapa.ai3w ago
Hi @Ivan. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not contain explicit documentation or details about the configuration or syntax for the strict-transport-security header in the nuxt-security module. There is a mention of a related issue and a pull request about adding the crossorigin attribute and initial CSP handling, but nothing directly addresses the strict-transport-security configuration or the "Invalid syntax" error you are encountering in your code snippet fix(nuxt): add crossorigin attribute for stylesheets feat(nuxt): add initial CSP handling. Therefore, I cannot provide a definitive solution or confirm the correct syntax for strictTransportSecurity in nuxt-security based on the current knowledge sources. You may want to consult the official nuxt-security documentation or the module's issue tracker for more up-to-date guidance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3w ago
<@1406980219323027578> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Ivan
IvanOP3w ago
Can you help me find a link to the module's issue tracker for more up-to-date guidance?

Did you find this page helpful?