vue3-google-login icon indicating copy to clipboard operation
vue3-google-login copied to clipboard

I Got Cross-Origin-Opener-Policy Error But the popup is shown

Open pine630 opened this issue 1 year ago • 4 comments

image

I setup my application as the mannual and also the google cloud

image

Could anyone help me about this error message?

pine630 avatar Aug 07 '23 06:08 pine630

I've got the same: image

pjkostrzewski avatar Aug 09 '23 08:08 pjkostrzewski

Same issue :(

joseperu2503 avatar Aug 24 '23 22:08 joseperu2503

For all those who are experiencing the error, I realized that my deployment of the static app ( in my case on azure ) was not correct, so in the staticwebapp.config.json file I configured the headers like this

"globalHeaders": {
        "Access-Control-Allow-Origin": "*",
        "Access-Control-Allow-Methods": "POST, GET, OPTIONS",
        ""Cross-Origin-Opener-Policy": "same-origin-allow-popups"",
        "referrer-policy": "strict-origin-when-cross-origin"
    }

and everything works correctly.

539hex avatar Aug 25 '23 07:08 539hex

How to do it in vue 3 ?

cavid90 avatar Nov 21 '23 01:11 cavid90

@cavid90 @Wasabiiiiiii @pine630 @pjkostrzewski @joseperu2503
Sorry for the late reply guys, I can't replicate this issue on my side. I doubt this might be an error shown from Google 3P Authorization JavaScript Library, as this is just a wrapper around this library. I guess this might have fixed. Please reopen if this issue still exist.

devbaji avatar Jul 27 '24 05:07 devbaji