Skip to content

Commit 6a3de7a

Browse files
linshunghuangBrian Vaughn
authored andcommitted
[DevTools] postMessage target origin needs to be '*' for local files (#16953)
1 parent ac8e8b3 commit 6a3de7a

File tree

1 file changed

+1
-1
lines changed
  • packages/react-devtools-extensions/src

1 file changed

+1
-1
lines changed

packages/react-devtools-extensions/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function createPanelIfReactLoaded() {
135135
// Initialize the backend only once the Store has been initialized.
136136
// Otherwise the Store may miss important initial tree op codes.
137137
chrome.devtools.inspectedWindow.eval(
138-
`window.postMessage({ source: 'react-devtools-inject-backend' }, window.origin);`,
138+
`window.postMessage({ source: 'react-devtools-inject-backend' }, '*');`,
139139
function(response, evalError) {
140140
if (evalError) {
141141
console.error(evalError);

0 commit comments

Comments
 (0)