Skip to content

Commit 815bb5f

Browse files
committed
fix(ollama): allow ollama host in csp
1 parent 4da83a1 commit 815bb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sim/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const nextConfig: NextConfig = {
8484
},
8585
{
8686
key: 'Content-Security-Policy',
87-
value: "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self'; connect-src 'self'; frame-ancestors 'self'; form-action 'self'; base-uri 'self'; object-src 'none'",
87+
value: "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self'; connect-src 'self' http://localhost:11434 http://host.docker.internal:11434; frame-ancestors 'self'; frame-ancestors 'self'; form-action 'self'; base-uri 'self'; object-src 'none'",
8888
},
8989
],
9090
},

0 commit comments

Comments
 (0)