You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I get it wrong but setting CSP for specific routes doesnt seem to work:
routeRules: {'/contact': {security: {headers: {contentSecurityPolicy: {'img-src': ['https://maps.googleapis.com','https://maps.gstatic.com',],// For Google Maps},},},},}
If I set it globally it works:
security: {headers: {contentSecurityPolicy: {'img-src': ["'self'","data:",'https://maps.googleapis.com','https://maps.gstatic.com',],// For Google Maps},},},
If I got the docs right and the first example should work I will create a reproduction sandbox.
The text was updated successfully, but these errors were encountered:
FYI we are aware that this is quite complex and not very intuitive. Right now we are constrained by the Nitro router, but we are planning to change this in the future (merging will always be substitutive, which will work as you expect), see PR #429
Maybe I get it wrong but setting CSP for specific routes doesnt seem to work:
If I set it globally it works:
If I got the docs right and the first example should work I will create a reproduction sandbox.
The text was updated successfully, but these errors were encountered: