PricingBlog

Authorization not sent with Request

  • stockton_f-1186167946050015335

    Stockton

    2 years ago

    I'm using an API to send a POST request to supabase "get sign url" for uploading a file.

    The response is failing saying that:

    {
    "statusCode": "400",
    "error": "Error",
    "message": "headers must have required property 'authorization'"
    }


    However, I have verified that the supabase login api works and is setting the session cookie correctly. I can see the authorization cookie in the browser.
    1186167946817577030-visionlabs_-_db_Toddle_editor_2023-12-17_at_9.46.20_PM.jpg.jpg
    1186167947106975854-Test_Form_Page_2023-12-17_at_9.45.25_PM.jpg
    1186167947618684958-Test_Form_Page_2023-12-17_at_9.47.24_PM.jpg
  • tomthebigtree-1186193235870236792

    Tom Ireland

    2 years ago

    @Stockton - I'm not entirely sure what the issue is but a quick search returned some specific gripes from Supabase users regarding buckets. See https://github.com/supabase/storage-js/issues/64 as an example. Might be something to do with the path?
    🙏1
  • andreasmoller-1186249844407423016

    Andreas Møller

    2 years ago

    @Stockton Is the request proxied ? You can find that property in the bottom of the api panel.
    🙏1
  • stockton_f-1186418293440008283

    Stockton

    2 years ago

    @Andreas Møller ahh no it wasn't. Sneaky.