lwcolton / falcon-cors

CORS support for Falcon: http://falconframework.org
Apache License 2.0
74 stars 15 forks source link

Adding process_response to middleware #6

Open menudoproblema opened 6 years ago

menudoproblema commented 6 years ago

Adding process_response to middleware to manage CORS info if an exception is raised. In my case, I'm using an auth middleware that raises 403. In this situation, there is no CORS info available in response. Falcon 1.2 adds independent_middleware for executing response middleware independently of request middleware.