Skip to content

Commit

Permalink
Add attribute for allowing credentials to iframe (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwhmeikle committed Aug 26, 2022
1 parent d8d54b8 commit 058fce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@authsignal/browser",
"type": "module",
"version": "0.0.14",
"version": "0.0.15",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/popup-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class PopupHandler {
iframe.setAttribute("title", "Authsignal multi-factor authentication");
iframe.setAttribute("src", url);
iframe.setAttribute("frameborder", "0");
iframe.setAttribute("allow", "publickey-credentials-get *");

const dialogContent = document.querySelector(`#${CONTENT_ID}`);

Expand Down

0 comments on commit 058fce5

Please sign in to comment.