Merge pull request #75 from tennox/patch-1

This commit is contained in:
Eugene 2022-11-07 18:53:54 +01:00 committed by GitHub
commit 8d4c4c9c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ class TerminalView(APIView):
class DemoView(APIView):
def get(self, request, format=None):
response = static.serve(request, 'demo.html', document_root=str(settings.STATIC_ROOT))
response['X-Frame-Options'] = 'ALLOW-FROM https://tabby.sh'
response['Content-Security-Policy'] = 'frame-ancestors https://tabby.sh'
return response