mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
Support panel hosts that serve the page from their own scheme
Codex serves panels from codex-sandbox:// pages, where origins are opaque: the panel recognizes the app's own addresses by scheme and host, the vessels feed resolves against the document address, and the dev server answers Codex's sandbox origins with CORS.
This commit is contained in:
1 parent
64c1b1951f
commit
b11d54d8b8
5 files changed
+16
-10
No files matched your search
@@ -6,6 +6,7 @@ import { embedFramingPlugin } from './embed-framing.js';
|
||||
export const PANEL_CORS_ORIGINS = Object.freeze([
|
||||
/^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/,
|
||||
/^https:\/\/[a-z0-9]+\.claudemcpcontent\.com$/,
|
||||
/^(?:https|codex-sandbox):\/\/[a-z0-9-]+\.web-sandbox\.oaiusercontent\.com$/,
|
||||
]);
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user