jermay / nft-forum-api

API for nft-forum repo
MIT License
0 stars 0 forks source link

Unstoppable Domains Login #1

Open jermay opened 2 years ago

jermay commented 2 years ago

Add support for login via Unstoppable Domain

jermay commented 2 years ago

Having problems with CORS errors when calling the login endpoint.

When it's called from the frontend a CORS error results on the redirect to the unstoppable authentication endpoint.

Preflight missing allow origin header

image

When I call the endpoint directly it responds with a 405 (Method Not Allowed). After some googling this may be because the preflight check uses the OPTIONS method and the redirect url https://auth.unstoppabledomains.com/oauth2/auth only allows GET and HEAD:

image

jermay commented 2 years ago

Update: I discovered yesterday the @uauth/examples/server project produces the same error. So either there's a bug in the UD server endpoint or I'm still doing something wrong 🤔