3 ms·
It depends on including things like headers and other non-approved changes to the request. Content-Type is one of them, but even it has some whitelisted options
by davidfiala 2y ago
It depends on including things like headers and other non-approved changes to the request. Content-Type is one of them, but even it has some whitelisted options.
Read about 'simple' requests to see what you can and cannot do before a preflight is required: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simpl...
- demarq 2y agoProbably you didn’t see my first reply. Put simply if I make cross origin POST request that’s JSON type it cannot be a simple request. There are no ways around this
- davidfiala 2y agoDidn't see it :) you nailed it!