mirror of
https://github.com/Eugeny/tabby-web.git
synced 2025-06-07 21:19:53 +00:00
Update deprecated X-Frame-Options to CSP frame-ancestors for demo embed
See #74
This commit is contained in:
parent
6d4d4377fa
commit
200a95d819
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user