User Tools

Site Tools


csp-bypass-custom-404

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

csp-bypass-custom-404 [2024/08/24 19:12] – created osorincsp-bypass-custom-404 [2024/11/01 09:07] (current) osorin
Line 2: Line 2:
  
 With: With:
-<code>+<code python>
 resp.headers['Content-Security-Policy'] = "script-src 'self'; resp.headers['Content-Security-Policy'] = "script-src 'self';
 </code> </code>
Line 8: Line 8:
 And a custom 404 page like: And a custom 404 page like:
  
-<code>+<code python>
 @app.errorhandler(404) @app.errorhandler(404)
 def page_not_found(error): def page_not_found(error):
csp-bypass-custom-404.1724526768.txt.gz · Last modified: 2024/08/24 19:12 by osorin