Skip to content

Commit

Permalink
Explicit CSRF protection
Browse files Browse the repository at this point in the history
  • Loading branch information
benlye committed Nov 10, 2022
1 parent ed7b53e commit b7337b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions octoprint_firmwareupdater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,9 @@ def update_hook(self):
)
)

def is_blueprint_csrf_protected(self):
return True

class FlashException(Exception):
def __init__(self, reason, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
Expand Down

0 comments on commit b7337b8

Please sign in to comment.