Skip to content

Commit 2121a31

Browse files
committed
fix: use wildcard origin for postMessage to support cross-origin CMS
1 parent bd9d859 commit 2121a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
const token = "%s";
3737
window.opener.postMessage(
3838
"authorization:github:success:" + JSON.stringify({token: token, provider: "github"}),
39-
document.referrer
39+
"*"
4040
);
4141
window.close();
4242
})();

0 commit comments

Comments
 (0)