#Preflight response successful but getting 403 when uploading multipart formdata

3 messages · Page 1 of 1 (latest)

reef inlet
#

403 would mean your request didn't pass the AuthGuard('oauth2'). You're probably not sending the correct headers/cookies?

scenic spire
#

:authority: api.example.com :method: POST :path: /v1/scheduler :scheme: https accept: application/json, text/plain, */* accept-encoding: gzip, deflate, br accept-language: en-US,en;q=0.9 authorization: Bearer ... content-length: 19679 content-type: multipart/form-data; boundary=----WebKitFormBoundaryRl87ZmKvfhKID3rw origin: https://example.com referer: https://example.com sec-ch-ua: "Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "macOS" sec-fetch-dest: empty sec-fetch-mode: cors sec-fetch-site: same-site user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

#

The authguard would've given a 401, these are the headers being sent