From 2984759997a0e011d62689aece04398c70e2013e Mon Sep 17 00:00:00 2001 From: RishabhJain2018 Date: Sun, 12 Aug 2018 15:51:24 -0400 Subject: [PATCH 1/2] Allow xframe requests from cloudcv only --- vqa/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vqa/settings.py b/vqa/settings.py index 481fdbc..aa8acda 100644 --- a/vqa/settings.py +++ b/vqa/settings.py @@ -137,3 +137,6 @@ "ROUTING": "demo.routers.channel_routing", }, } + +X_FRAME_OPTIONS = 'https://cloudcv.org/projects/vqa' + From 7ef27baa424418e964d6070c6c1a34a0536154a2 Mon Sep 17 00:00:00 2001 From: RishabhJain2018 Date: Mon, 13 Aug 2018 14:59:29 -0400 Subject: [PATCH 2/2] Minor Fix --- vqa/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vqa/settings.py b/vqa/settings.py index aa8acda..6bded10 100644 --- a/vqa/settings.py +++ b/vqa/settings.py @@ -138,5 +138,5 @@ }, } -X_FRAME_OPTIONS = 'https://cloudcv.org/projects/vqa' +X_FRAME_OPTIONS = 'ALLOW-FROM https://cloudcv.org/projects/vqa'