Auth Cookies error 401 & PostMessage CORS Error

For some reason, Replit Auth doesn’t work with Replit.apps.

Every valid /__replauthuser request gives me a 401 error.

Following the v2 docs leads to this issue.


It’s failing to PostMessage to the parent window.


1 Like

This bug has now been fixed.

Does your code work as expected when you hit run in the workspace, i.e. on, or is it only an issue on domains?

EDIT: Happy it is fixed now, I must have had the draft window open when you posted your reply.


It should now, the Opener gets called instead of the CORS error causing it to throw although the try block.

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