Closed mgreystone closed 6 years ago
Paperplane currently does not add CORS headers if a handler throws. I have hacked together a solution by wrapping any errors in a CorsError object with headers, & unwrapping it in errors.js.
CorsError
errors.js
👀
@flintinatux You're code is much cleaner. My vote is that we just start there.
Closing in favor of #22
Paperplane currently does not add CORS headers if a handler throws. I have hacked together a solution by wrapping any errors in a
CorsError
object with headers, & unwrapping it inerrors.js
.