You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a simple RESTful server using falcon. To support CORS I write a global after hook who adds extra response headers. But I found the hook does not work with exceptions. This is the code:
I'm writing a simple RESTful server using falcon. To support CORS I write a global after hook who adds extra response headers. But I found the hook does not work with exceptions. This is the code:
If authorization information is provided everything is ok:
But If no authorization provided, an exception should be raised. And the extra header is not added:
wsgi middleware should be a quick solution. But I wonder is there a falcon way to do that?
Thanks!
The text was updated successfully, but these errors were encountered: