DEV Community

Discussion on: CORS & Preflight Request!

Collapse
 
harshilparmar profile image
Harshil Parmar

Nice brother!!
Can I ask one question?

Access-Control-Allow-Headers - specifies which headers are accepted with the actual CORS request (in this case PATCH)
why are you saying PATCH is a header?? From my knowledge it is method right?

Collapse
 
rahul_ramfort profile image
Rahul

Yes, you're right. Patch is a method.

But what I meant was
"Access-Control-Allow-Headers - specifies which headers will be accepted with the PATCH request that is to follow"

Yes, it's kind of misleading, I'll rephrase this.

Collapse
 
harshilparmar profile image
Harshil Parmar

👍👍