claudiajs / claudia-api-builder

Use AWS API Gateway as if it were a lightweight JavaScript web server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong document in cors.md

penghuili opened this issue · comments

commented
/claudiajs.com$/.test(request.headers.Origin)

Actually it should check:

/claudiajs.com$/.test(request.normalizedHeaders.origin)

which is documented correctly here: https://github.com/claudiajs/example-projects/blob/master/web-api-custom-cors/web.js

thanks, updated