Skip to content

Commit cb71a2a

Browse files
fagoclaude
andauthored
fix: remove crossOrigin use-credentials from entry script (#100)
The crossOrigin = 'use-credentials' attribute on the entry module script causes CORS issues when the app-loader is used cross-origin (e.g. in Canvas preview iframes). Removing it restores the default browser behavior which works correctly for cross-origin module scripts. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3a5592d commit cb71a2a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/runtime/server/api/app-loader.js.get.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export default defineEventHandler((event) => {
8383
// Load entry module
8484
const entry = document.createElement('script');
8585
entry.type = 'module';
86-
entry.crossOrigin = 'use-credentials';
8786
entry.src = '${entryPathValue}';
8887
document.head.appendChild(entry);
8988
}

0 commit comments

Comments
 (0)