Skip to content

Commit

Permalink
Fixed issue with cross-origin app/da comms ailing to work
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Jul 21, 2023
1 parent 69823fa commit 41934fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --port 5000",
"dev": "vite --port 8080 --host ",
"build": "tsc && vite build",
"preview": "vite preview"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/strategies/post-message-load-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const supplier: Supplier = (url: string, checker: AppChecker, detailsReso
const origin = event.origin;
const source = event.source as Window
if (checker(source)) {
console.log(`API Request Origin: ${origin} Source: ${source}`);
console.log(`API Request Origin: ${origin}`);
source.postMessage(createResponseMessage(source), origin);
}
}
Expand Down

0 comments on commit 41934fc

Please sign in to comment.