potential xframe fix
This commit is contained in:
parent
33e336c769
commit
bcf20eb7e6
@ -40,8 +40,6 @@ class GameView(TemplateView):
|
|||||||
|
|
||||||
r = render(request, "bloonsa_game/game.html",
|
r = render(request, "bloonsa_game/game.html",
|
||||||
context={"total_levels": total_levels,})
|
context={"total_levels": total_levels,})
|
||||||
if DEBUG:
|
|
||||||
r["x-frame-options"] = "sameorigin"
|
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
||||||
@ -60,6 +58,5 @@ class LeaderboardGlobalView(TemplateView):
|
|||||||
context={
|
context={
|
||||||
"players": players
|
"players": players
|
||||||
})
|
})
|
||||||
if DEBUG:
|
r["x-frame-options"] = "sameorigin"
|
||||||
r["x-frame-options"] = "sameorigin"
|
|
||||||
return r
|
return r
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user