CSP issues on deployed Next.js application
Unanswered
Asian black bear posted this in #help-forum
Asian black bearOP
Have a next.js application that was deployed on AWS Amplify, but with their recent update everything broke. Trying to get something up in the mean time and having trouble with CSP configuration. I need it to be really flexible for this CDN link, as well as srcs for a unity game in an iframe:
{
key: 'Content-Security-Policy',
value: "default-src *; script-src * 'unsafe-inline' 'unsafe-eval' 'https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io'; style-src * 'unsafe-inline'; img-src * data:; font-src * data:; connect-src *;",
},
https://overworld-arena.vercel.app/
it's riddled with CSP errors in the console. I tried support on the vercel website and the AI rec'd putting in middleware, but that did not work either. I submitted a case as well, but figured if it can be solved here, i might as well try looking for help. Thanks!
{
key: 'Content-Security-Policy',
value: "default-src *; script-src * 'unsafe-inline' 'unsafe-eval' 'https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io'; style-src * 'unsafe-inline'; img-src * data:; font-src * data:; connect-src *;",
},
https://overworld-arena.vercel.app/
it's riddled with CSP errors in the console. I tried support on the vercel website and the AI rec'd putting in middleware, but that did not work either. I submitted a case as well, but figured if it can be solved here, i might as well try looking for help. Thanks!