sdekna
03/15/2023, 2:24 AMrp_st
03/15/2023, 5:10 AMsdekna
03/15/2023, 5:32 AMsupertokens-web-js
.
I am getting this error:
Access to fetch at 'https://API-ENDPOINT/signin ($$ or sign up $$)' from origin 'https://FRONTEND-DOMAIN' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
If I make a signup request, it actually registers the user, but I get the above error... In the dashboard I see the new user... and if I try to signup again with the same email, I do get a proper response saying the email is already registered.
If I make a signin request I get the error above.
For reference, I am using sveltekit in the frontend.rp_st
03/15/2023, 6:05 AMsdekna
03/15/2023, 6:09 AMERR_FAILED 502
I added it before the middlewear... you may check the code here: https://pastebin.com/7dBmP2XCrp_st
03/15/2023, 6:10 AMsdekna
03/15/2023, 6:12 AMhttp
instead of https
sdekna
03/15/2023, 6:13 AMrp_st
03/15/2023, 6:14 AMsdekna
03/15/2023, 6:14 AMsdekna
03/15/2023, 6:15 AMrp_st
03/15/2023, 6:18 AMrp_st
03/15/2023, 6:18 AMrp_st
03/15/2023, 6:18 AMrp_st
03/15/2023, 6:19 AMsdekna
03/15/2023, 6:19 AMsdekna
03/15/2023, 6:27 AMproxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
Many thanks for the help!rp_st
03/15/2023, 6:27 AM