Skip to content

Commit

Permalink
Allow storage access requests from iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
robknight committed Sep 20, 2024
1 parent fc5b00e commit 068fc2a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
7 changes: 7 additions & 0 deletions examples/test-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/test-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test-app",
"version": "1.0.6",
"version": "1.0.7",
"private": true,
"type": "module",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/app-connector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/app-connector/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-connector/src/adapters/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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%";
Expand Down

0 comments on commit 068fc2a

Please sign in to comment.