Some CSP problems #569
Replies: 5 comments 16 replies
-
Hi @bycixman35 |
Beta Was this translation helpful? Give feedback.
-
There is no error in the console. When I remove nitro prerender routes / the problem is solved, but when I add them, they do not work together. |
Beta Was this translation helpful? Give feedback.
-
Strange that you don’t have messages in the console |
Beta Was this translation helpful? Give feedback.
-
This is probably related to #576 |
Beta Was this translation helpful? Give feedback.
-
@bycixman35 we are releasing a hotfix with PR #577 |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, there are 2 problems with my code below. No matter what I did, I couldn't solve the problem.
Problem 1 -) When the user refreshes the page, it always redirects to the home page.
Problem 2 -) The css does not come correctly on the pages where I pull dynamic data. I added 2 images as an example. When I refresh the page the css becomes even more corrupted.
Thanks for your help.
security: { hidePoweredBy: true, corsHandler: { origin: "https://www.abc.com", methods: ["GET", "POST", "DELETE"], credentials: false }, headers: { strictTransportSecurity: { maxAge: 15552000, includeSubdomains: true }, xFrameOptions: "DENY", crossOriginEmbedderPolicy: "unsafe-none", crossOriginOpenerPolicy: "same-origin", crossOriginResourcePolicy: "same-origin", xXSSProtection: "1; mod=block", xPermittedCrossDomainPolicies: "none", contentSecurityPolicy: { 'base-uri': ["'none'"], 'font-src': ["'self'", 'https:', 'data:'], 'form-action': ["'self'"], 'img-src': ["'self'", 'https://www.facebook.com', 'https://www.google.com.tr', 'https://www.googletagmanager.com', 'https://i.ytimg.com', 'data:'], 'frame-ancestors': ["'none'"], 'frame-src': ["'self'", 'https://www.youtube.com/', 'https://td.doubleclick.net/'], 'manifest-src': ["'self'"], 'media-src': ["'self'"], 'object-src': ["'none'"], "worker-src": ["'self'"], "script-src-attr": ["'none'"], 'script-src': [ "'self'", 'https:', "'unsafe-inline'", "'nonce-{{nonce}}'" ], 'style-src': ["'self'", "'unsafe-inline'"], "upgrade-insecure-requests": true }, originAgentCluster: "?1", xContentTypeOptions: "nosniff", referrerPolicy: "strict-origin-when-cross-origin", xDownloadOptions: "noopen", xDNSPrefetchControl: "off" }, allowedMethodsRestricter: { methods: ["GET", "POST", "DELETE"] }, xssValidator: { methods: ["GET", "POST", "DELETE"], css: true, escapeHtml: true }, requestSizeLimiter: { maxRequestSizeInBytes: 2000000, maxUploadFileRequestInBytes: 8000000 }, rateLimiter: { tokensPerInterval: 100, interval: 900000, headers: false }, sri: true, nonce: true, ssg: { meta: true, hashScripts: true, hashStyles: false, exportToPresets: true } }
Beta Was this translation helpful? Give feedback.
All reactions