en.javascript.info
en.javascript.info copied to clipboard
`Fetch: Cross-Origin Requests` article wording
Article: Fetch: Cross-Origin Requests
-
https://github.com/javascript-tutorial/en.javascript.info/blob/285083fc71ee3a7cf55fd8acac9c91ac6f62105c/5-network/05-fetch-crossorigin/article.md?plain=1#L206 This line gives an idea that there can only be three headers when, in fact, there can be more, as per this MDN article or verified in practice.
-
https://github.com/javascript-tutorial/en.javascript.info/blob/285083fc71ee3a7cf55fd8acac9c91ac6f62105c/5-network/05-fetch-crossorigin/article.md?plain=1#L212 A successful response to a preflight request is restricted to an ok-status, which includes 200 but not limited to it, as per the spec.
I may be nitpicking, but I had to google what was wrong with my preflight request when it had ~10 headers and received a 204 response.