|
|
|
|
|
by jonchurch_
375 days ago
|
|
This is missing important context. You are correct that preflight will be skipped, but there are further restrictions when operating in this mode. They don't guarantee your server is safe, but it does force operation under a “safer” subset of verbs and header fields. The browser will restrict the headers and methods of requests that can be sent in no-cors mode. (silent censoring in the case of headers, more specifically) Anything besides GET, HEAD, POST will result in an error in browser, and not be sent. All headers will be dropped besides the CORS safelisted headers [0] And Content-Type must be one of urlencoded, form-data, or text-plain. Attempting to use anything else will see the header replaced by text-plain. [0] https://developer.mozilla.org/en-US/docs/Glossary/CORS-safel... |
|