DEV Community

Discussion on: Your Complete API Gateway and CORS Guide

Collapse
 
vitalykarasik profile image
Vitaly Karasik

"It turns out that unlike REST API, HTTP API will only set the header if you pass in an Origin header on the request."
Many thanks, you saved a day! It was very unintuitive...

Collapse
 
elthrasher profile image
Matt Morgan

Glad that helped you, Vitaly! I wrote this up because of so many little gotchas like that one.