Skip to content

Conversation

@bulk88
Copy link
Contributor

@bulk88 bulk88 commented Oct 5, 2020

revised branch from
cloudflare/cloudflare-docs-engine#272

I added spread operator from #272.

bulk88 added 2 commits October 4, 2020 21:19
-dont deref the request object multiple times
-whitespace in header value is optional per
 https://tools.ietf.org/html/rfc7230#section-7, remove it to save wire
 bytes
"Access-Control-Allow-Headers": "Content-Type" is pointless, it is one of
4 whitelisted headers at
https://fetch.spec.whatwg.org/#no-cors-safelisted-request-header-name that
a client may include as request headers without a preflight, the browser
will not do a preflight if only those 4 headers will be explicitly set
from XHR with the GET/POST request later
@adamschwartz adamschwartz requested a review from ispivey October 7, 2020 23:03
@adamschwartz adamschwartz merged commit 90fe0a6 into cloudflare:master Oct 10, 2020
@adamschwartz adamschwartz added the product:workers Related to Workers product label Oct 10, 2020
@adamschwartz
Copy link
Contributor

@ispivey Thanks for the review!

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 11, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2733c9b
Status: ✅  Deploy successful!
Preview URL: https://c61ce0ca.cloudflare-docs-7ou.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants