Skip to content

Commit 7ec0d3c

Browse files
antfusqcheah
andcommitted
fix: allow iframe to work in stricter cross-origin policy
close nuxt/learn.nuxt.com#68 Co-authored-by: sqcheah <sqcheah@users.noreply.github.com>
1 parent 34dc294 commit 7ec0d3c

File tree

1 file changed

+2
-0
lines changed
  • packages/devtools/src/runtime/plugins/view

1 file changed

+2
-0
lines changed

packages/devtools/src/runtime/plugins/view/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ export async function setupDevToolsClient({
129129
try {
130130
iframe = document.createElement('iframe')
131131
iframe.id = 'nuxt-devtools-iframe'
132+
iframe.allow = 'cross-origin-isolated'
133+
iframe.setAttribute('credentialless', 'true')
132134
iframe.src = initialUrl
133135
iframe.onload = async () => {
134136
try {

0 commit comments

Comments
 (0)