Replit.app 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.


image

It’s failing to PostMessage to the parent window.

image

1 Like

This bug has now been fixed.

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

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

3 Likes

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.