From 934bb58a0a027eaae45cda826f0cee36db3a2d2b Mon Sep 17 00:00:00 2001 From: Oliver O'Mahony Date: Thu, 1 Sep 2022 16:51:42 +0100 Subject: [PATCH] mitigate click jacking in example html (#28) * mitigate click jacking in example html Co-authored-by: o.omahony --- sdk/examples/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/examples/index.html b/sdk/examples/index.html index ccaeaec79..fb55963c8 100644 --- a/sdk/examples/index.html +++ b/sdk/examples/index.html @@ -5,7 +5,7 @@ if ( self === top ) { document.documentElement.style.display = 'block'; } else { - top.location = self.location; + top.location = encodeURI(self.location); }