0

How can I resolve the 'Cross-Origin-Opener-Policy policy would block the window.closed call' error in my React application? This error seems to be related to the Cross-Origin-Opener-Policy (COOP) policy set on the server. How can I handle this error and ensure that my React app functions correctly while adhering to the COOP policy restrictions?

enter image description here

On searching so far I understood that I need to set

Cross-Origin-Opener-Policy: unsafe-none
Cross-Origin-Opener-Policy: same-origin-allow-popups
Cross-Origin-Opener-Policy: same-origin

But I don't know where and how to set.

mousetail
  • 7,009
  • 4
  • 25
  • 45
  • You can only set headers on the server side – mousetail Aug 17 '23 at 13:47
  • Does this answer your question? [No 'Access-Control-Allow-Origin' header is present on the requested resource—when trying to get data from a REST API](https://stackoverflow.com/questions/43871637/no-access-control-allow-origin-header-is-present-on-the-requested-resource-whe) – mousetail Aug 17 '23 at 17:15

0 Answers0