From 068fc2ae0c120133f2646708e39b1a265d8eed96 Mon Sep 17 00:00:00 2001 From: Rob Knight Date: Fri, 20 Sep 2024 18:29:23 +0200 Subject: [PATCH] Allow storage access requests from iframes --- examples/test-app/CHANGELOG.md | 7 +++++++ examples/test-app/package.json | 2 +- packages/app-connector/CHANGELOG.md | 6 ++++++ packages/app-connector/package.json | 2 +- packages/app-connector/src/adapters/iframe.ts | 2 +- 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/examples/test-app/CHANGELOG.md b/examples/test-app/CHANGELOG.md index 12bc8e1..e38b798 100644 --- a/examples/test-app/CHANGELOG.md +++ b/examples/test-app/CHANGELOG.md @@ -1,5 +1,12 @@ # test-app +## 1.0.7 + +### Patch Changes + +- Updated dependencies + - @parcnet-js/app-connector@0.0.6 + ## 1.0.6 ### Patch Changes diff --git a/examples/test-app/package.json b/examples/test-app/package.json index c6a3180..4a77997 100644 --- a/examples/test-app/package.json +++ b/examples/test-app/package.json @@ -1,6 +1,6 @@ { "name": "test-app", - "version": "1.0.6", + "version": "1.0.7", "private": true, "type": "module", "scripts": { diff --git a/packages/app-connector/CHANGELOG.md b/packages/app-connector/CHANGELOG.md index c414cc3..6aa4e95 100644 --- a/packages/app-connector/CHANGELOG.md +++ b/packages/app-connector/CHANGELOG.md @@ -1,5 +1,11 @@ # @parcnet-js/app-connector +## 0.0.6 + +### Patch Changes + +- Allow storage access API requests from iframes + ## 0.0.5 ### Patch Changes diff --git a/packages/app-connector/package.json b/packages/app-connector/package.json index 4da3dd8..bb74337 100644 --- a/packages/app-connector/package.json +++ b/packages/app-connector/package.json @@ -1,6 +1,6 @@ { "name": "@parcnet-js/app-connector", - "version": "0.0.5", + "version": "0.0.6", "license": "GPL-3.0-or-later", "type": "module", "main": "dist/index.cjs", diff --git a/packages/app-connector/src/adapters/iframe.ts b/packages/app-connector/src/adapters/iframe.ts index 26c8735..4d11291 100644 --- a/packages/app-connector/src/adapters/iframe.ts +++ b/packages/app-connector/src/adapters/iframe.ts @@ -94,7 +94,7 @@ export function connect( const iframe = document.createElement("iframe"); const sandboxAttr = document.createAttribute("sandbox"); sandboxAttr.value = - "allow-same-origin allow-scripts allow-popups allow-modals allow-forms"; + "allow-same-origin allow-scripts allow-popups allow-modals allow-forms allow-storage-access-by-user-activation"; iframe.attributes.setNamedItem(sandboxAttr); iframe.style.borderWidth = "0px"; iframe.style.width = "100%";