Skip to content

Commit 6bd523c

Browse files
committed
fix(nginx): allow origin mistral
1 parent 0f513dd commit 6bd523c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/nginx.conf

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ server {
2121
client_max_body_size 10M;
2222
}
2323
location ~ ^/mistral/(.*)$ {
24+
proxy_hide_header Access-Control-Allow-Origin;
25+
add_header Access-Control-Allow-Origin "$http_origin" always;
2426
proxy_pass https://api.mistral.ai/v1/$1;
2527
proxy_set_header Authorization 'Bearer $MISTRAL_KEY';
2628
proxy_set_header Accept application/json;

0 commit comments

Comments
 (0)