Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.

Commit c946589

Browse files
committed
allow cross origin
1 parent bf54343 commit c946589

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

static/pflow.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@ function init() {
117117
}
118118

119119
window.addEventListener('message', function(event) {
120-
if (event.origin !== window.location.origin) {
121-
console.error('Invalid origin:', event.origin);
122-
return;
123-
}
120+
// REVIEW: by removing this check we allow cross origin interaction
121+
// if (event.origin !== window.location.origin) {
122+
// console.error('Invalid origin:', event.origin);
123+
// return;
124+
// }
124125
if (event.data.type === "reset") {
125126
reset();
126127
}

0 commit comments

Comments
 (0)