cors-gate
cors-gate copied to clipboard
Koa version?
We don't have plans for one, as we're still using Express. But you're welcome to create one and link it here!
@bradvogel are you good with me copying code over to a Koa version as long as I link back here in the README?
Yes - all good! We'll cross link too
What's meant to happen if this if
is false?
https://github.com/mixmaxhq/cors-gate/blob/a6bce954ddf66420a645029cf2b8c72e9c90a223/index.js#L87-L92
Here's the Koa version with Ava testing. We just need the above issue resolved and then we'll be at 100% coverage.
Ref: https://github.com/ladjs/koa-cors-gate
Hey @OmgImAlexis, sorry for the late response. If https://github.com/mixmaxhq/cors-gate/blob/a6bce954ddf66420a645029cf2b8c72e9c90a223/index.js#L87-L92 is false
, we'll be a little less secure since we won't be able to patch the origin in to try to reject unauthorized cross-origin requests, as described in the comment block above that line. Does that answer your question?
@OmgImAlexis Is the state of koa-cors-gate
stable and complete? I would like to use it, but noticed it's not on NPM.