popup_closed_by_user issue on Chrome or Safari
edshkliaruk opened this issue · 3 comments
edshkliaruk commented
yogeshkudikala commented
Facing the same issue
edshkliaruk commented
I solved this issue adding Cross-Origin-Opener-Policy
with same-origin-allow-popups
value.
veneliniliev commented
Exactly! Adding the Cross-Origin-Opener-Policy with the value same-origin-allow-popups is a great solution for this issue. Even Chrome suggests this problem can occur if this policy is not properly configured, as it blocks the window.closed calls. Setting this header ensures the necessary functionality, allowing popup windows to operate smoothly and preventing unwanted blocking of interactions between different windows. Thanks for sharing this solution!