Cross-Origin-Opener-Policy

Question:
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:
code

@app.after_request
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.