Is it possible to white-list WebSocket endpoints under the openai/widgetCSP settings? The following approach doesn’t seem to be working as the wss://… endpoint is automatically prefixed with https://:
DOMAINS = [
"https://cdn.derivative.autodesk.com",
"wss://cdn.derivative.autodesk.com"
];
server.registerResource({
"viewer",
"ui://widget/viewer.html",
{},
async () => {
return {
contents: [{
uri: "ui://widget/viewer.html",
mimeType: "text/html",
text: VIEWER_HTML,
_meta: {
"openai/widgetCSP": {
connect_domains: DOMAINS,
resource_domains: DOMAINS
}
}
}]
};
}
});