Hi all, I'm running into a problem that I can't se...
# help
t
Hi all, I'm running into a problem that I can't seem to figure out. When trying to login/register I'm getting a CORS error talking to the auth endpoint. I'm using
nuxt/supabase
. From my localhost (http) everything is working as expected. Anyone know if I might have a problem with my setup. An example link can be found here: https://www.bouwplaats.nu/login https://www.bouwplaats.nu/register If anyone has a suggetion what's wrong in my setup it would be really appreciated.
n
Hello @tinus! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
@tinus It looks like your apikey is not correct possibly. You are getting "Missing or invalid credentials." error. I notice it looks like (my xxx's added)
Copy code
apikey: 'eyJhbGciOiJIUzI1NiIsIxxxxxxxxxVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZ3dmFlZnBzZWN2cGRoeWVuZGdnIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NDk1xxxxxxxxxxxxxxxxxxEzMH0.Htpxxxxxxxxxxxxxxxg1tf1G9-EGNX-3py00bwhp4U'
Authorization: Bearer 'eyJhbGciOiJIUzI1NixxxxxxxxxxVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZ3dmFlZnBzZWN2cGRoeWVuZGdnIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NDk1xxxxxxxxxxxxxxxxxxxxxxTEzMH0.Htpkxxxxxxxxxxxxxxx1tf1G9-EGNX-3py00bwhp4U'
Note the single ' around your key.. From my js signup call:
Copy code
apikey: eyJhbGciOiJIUzI1aaaaaaaaaaaaaaaJ9.eyJyb2xlIjoiaaaaaaahIjoxOTU1MzaaaaaaaaaaaaaMfwdtPf9nDy-P3bq14uQaaaaaaaaaaaaaaqDQ_KTyggw
authorization: Bearer eyJhbGcssssssaaaaaaaaaaaaaaVCJ9.eyJyb2xlIjoiaaaaaaaaaaahdCI6ggggggZXaaaaaaaaaaaaaaaaaafwdtPf9nDy-P3aaaaaaaaaaaaaaa4Clj3qDQ_KTyggw
So in moving your project the way you pass in environment vars is probably operating differently...
n
tinus (2022-06-01)