https://supabase.com/ logo
Join Discord
Powered by
# help
  • d

    Deleted User

    12/22/2021, 11:48 PM
    I edited the jwt secret to be more than 32 chars
  • d

    Deleted User

    12/22/2021, 11:48 PM
    but
  • d

    Deleted User

    12/22/2021, 11:48 PM
    I don't think I have to put it into the client code at all
  • d

    Deleted User

    12/22/2021, 11:48 PM
    do I?
  • h

    hips

    12/22/2021, 11:50 PM
    there's an anon key that you can use client sided
  • h

    hips

    12/22/2021, 11:50 PM
    https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase
  • d

    Deleted User

    12/22/2021, 11:50 PM
    hmm.
  • d

    Deleted User

    12/22/2021, 11:50 PM
    one strange thing is
  • d

    Deleted User

    12/22/2021, 11:51 PM
    the main function of my app that uses a database works fine
  • d

    Deleted User

    12/22/2021, 11:51 PM
    it's just loading the terms of service that seems to be the problem
  • d

    Deleted User

    12/22/2021, 11:52 PM
    I guess it's not a huge deal
  • d

    Deleted User

    12/22/2021, 11:52 PM
    I can just hard-code them in.
  • d

    Deleted User

    12/22/2021, 11:54 PM
    Do you know what this would mean?
    Copy code
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://host/mainapiendpoint/rest/v1/public_variables?select=*. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 404.
  • h

    hips

    12/22/2021, 11:56 PM
    CORS issue
  • h

    hips

    12/22/2021, 11:56 PM
    your server doesn't like that you're not requesting from the same origin (url)
  • h

    hips

    12/22/2021, 11:56 PM
    make your app also run on
    https://host
  • d

    Deleted User

    12/22/2021, 11:57 PM
    it is
  • d

    Deleted User

    12/22/2021, 11:57 PM
    I setup an nginx reverse proxy
  • d

    Deleted User

    12/22/2021, 11:57 PM
    with certbot
  • d

    Deleted User

    12/22/2021, 11:57 PM
    for ssl
  • h

    hips

    12/22/2021, 11:58 PM
    Access-Control-Allow-Origin
    is this header present?
  • d

    Deleted User

    12/23/2021, 12:00 AM
    in the post request?
  • d

    Deleted User

    12/23/2021, 12:01 AM
    no
  • h

    hips

    12/23/2021, 12:01 AM
    it's a response header
  • h

    hips

    12/23/2021, 12:02 AM
    hm
  • h

    hips

    12/23/2021, 12:02 AM
    should work out of the box with supabase tbh
  • d

    Deleted User

    12/23/2021, 12:02 AM
    my web app is deployed
  • d

    Deleted User

    12/23/2021, 12:02 AM
    do you want to take a look
  • d

    Deleted User

    12/23/2021, 12:02 AM
    to like
  • h

    hips

    12/23/2021, 12:02 AM
    nope
1...169170171...316Latest