Skip to content

Commit

Permalink
fix xframe_options_sameorigin in MergeView (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiawei committed Jun 12, 2023
1 parent fed9491 commit 46485dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wiki/views/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ class MergeView(View):
template_error_name = "wiki/error.html"
urlpath = None

@method_decorator(xframe_options_sameorigin)
@method_decorator(get_article(can_write=True))
def dispatch(self, request, article, revision_id, *args, **kwargs):
return super().dispatch(request, article, revision_id, *args, **kwargs)
Expand Down

0 comments on commit 46485dd

Please sign in to comment.