Skip to content

Cross origin resource policy not set #6976

Answered by jack3898
LaraMateo asked this question in Q&A
Discussion options

You must be logged in to vote

I can't remember where I got this solution from but create a file in the root of your project called ".proxyrc.js" and paste the following in:

module.exports = function (app) {
  app.use((req, res, next) => {
    res.removeHeader('Cross-Origin-Resource-Policy');
    res.removeHeader('Cross-Origin-Embedder-Policy');
    next();
  });
};

Let me know if that works!

If someone could advise me on why this works for me? I am not sure why it does.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by LaraMateo
Comment options

You must be logged in to vote
3 replies
@jack3898
Comment options

@Rho-bur
Comment options

@jack3898
Comment options

# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants