-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cross-Origin-Embedder-Policy does not support the "cross-origin" policy #432
Comments
@Sahillather002 Could you make a sample app that reproduces this issue? |
index.js fileimport express from 'express' //configuration //routes //mongodb setup |
This line looks like your problem: app.use(helmet.crossOriginEmbedderPolicy({policy:"cross-origin"})) "cross-origin" is not a supported policy. Do you mean to set it to "require-corp"? |
Yes this line is only problem i am working on. |
Maybe you want the Cross-Origin-Resource-Policy header instead? |
There hasn't been activity on this issue so I am going to close it. Let me know if that's wrong! |
still i got this error |
index.js fileimport express from "express"; const __filename=fileURLToPath(import.meta.url); /FILE STORAGE/ /* MONGOOS SETUP */ const PORT = process.env.PORT || 6001; |
@shivmodi1203 This line looks like your problem: app.use(helmet.crossOriginEmbedderPolicy({policy:"Cross-Origin-Resource-Policy"})) There are only two valid policies: app.use(helmet.crossOriginEmbedderPolicy({policy: "require-corp"})); |
Opening this for @Sahillather002 after comments in another issue.
The text was updated successfully, but these errors were encountered: