I am using Google Oauth for login in my website, and when I click on Sign in button, this error appear: « Cross-Origin-Opener-Policy policy would block the window.closed call. There is screen of it, does anyone have any solution or suggestions about that? Someone on github saying that it necessary to change COOP header, but I don’t know how to do it…
Repl link:

code snippet

Guys, I just found the solution, as for me I actually just had to set coop header in my python code:

def add_coop_header(response):
    response.headers['Cross-Origin-Opener-Policy'] = 'same-origin'
    return response

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.