Rest API request using OPTIONS instead of POST

Every time I use REST API Request with POST method and an authorization header, the call is not using POST but OPTIONS, any fix for this ?

You will find that whenever you perform a “complex” request (typically anything with custom headers, like Authorization) to a domain different than the web site you will generate an OPTIONS request for what’s called a “preflight” check. This is a security precaution by the browser. You don’t get rid of this check. That should be paired with a POST request, unless you fail the preflight in some significant way.

Are you not seeing the POST? can you share more error information (screenshots or loom vid) on what you do see that is not quite right?

1 Like

It was an issue with CORS in which I didn’t add OPTIONS method, thanks you for your answer

1 Like