How can I send a CORS request using Curl?

An example of sending a Curl request with the CORS Origin header. The Origin header indicates where the request is coming from. In CORS Request, the Origin header is passed to the server with the -H command-line option to pass additional HTTP headers. In this Curl CORS example, we send a request to the ReqBin URL and pass an Origin: https://example.reqbin.com header to the server. Click Run to execute the Curl CORS request online and view the results.
Loading...