mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-17 15:34:36 +01:00
fixing rag
This commit is contained in:
@@ -49,8 +49,7 @@ const PluginIframe: React.FC<PluginIframeProps> = ({
|
||||
const allowedOrigins = [
|
||||
window.location.origin,
|
||||
config.getBackendUrl(),
|
||||
config.getApiUrl(),
|
||||
process.env.NEXT_PUBLIC_API_URL
|
||||
config.getApiUrl()
|
||||
].filter(Boolean);
|
||||
|
||||
if (!allowedOrigins.some(origin => event.origin.startsWith(origin))) {
|
||||
|
||||
Reference in New Issue
Block a user