CORS support
Understand how CORS defines how a browser and server communicate.
CORS request terms
Preflight request
Simple request
Non-simple request
OPTIONS command example
OPTIONS https://api-digitalriver.com/oauth20/token HTTP/1.1
Accept-Encoding: gzip,deflate
Accept: application/xml
Host: api.digitalriver.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
HTTP/1.1 200 OK
Content-Length: 5
Content-Type: text/plain; charset=UTF-8
Access-Control-Allow-Headers: Authorization,Content-Type,Accept,Accept-Language
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST,OPTIONSCORS server-side settings
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers
Access-Control-Allow-Credentials
Last updated