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
In the following (minimal) app the CSP headers are not present when running the app.
fromflaskimportFlaskfromflask_talismanimportTalismanclassMyFlask(Flask):
defprocess_response(self, response):
returnresponse# Replace MyFlask with Flask and the CPH headers will workapplication=MyFlask(__name__)
talisman=Talisman(application)
@application.route('/')defindex():
return'Hello, world!'if__name__=='__main__':
application.run(host='0.0.0.0', port=8080)
What would be the best way too modify the response and have the Talisman support? Is that a bug in Talisman? Am I holding it wrong?
The text was updated successfully, but these errors were encountered:
You removed all the code that calls after functions from process_response. Don't do that, or at least call super().process_response(response) as well. Perhaps you meant to override make_response? You typically wouldn't override process_response.
In the following (minimal) app the CSP headers are not present when running the app.
What would be the best way too modify the
response
and have the Talisman support? Is that a bug in Talisman? Am I holding it wrong?The text was updated successfully, but these errors were encountered: