mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-08 03:08:21 +00:00
Fix: Messages Sent to Any Website Without Verifying Recipient in apps/web/app/(navigation)/page.tsx (#565)
This commit is contained in:
parent
7e692f9862
commit
af12864d72
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ export default function Page() {
|
|||
|
||||
if (sessionToken && userData?.email) {
|
||||
const encodedToken = encodeURIComponent(sessionToken)
|
||||
window.postMessage({ token: encodedToken, userData }, "*")
|
||||
window.postMessage({ token: encodedToken, userData }, window.location.origin)
|
||||
url.searchParams.delete("extension-auth-success")
|
||||
window.history.replaceState({}, "", url.toString())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue