#community-help

Configuring CORS in Typesense Using Docker

TLDR Fulvio asked how to configure CORS. Jason recommended adding a --enable-cors flag, even when using Docker.

Powered by Struct AI
Jul 05, 2021 (31 months ago)
Fulvio
Photo of md5-16d994e060b67ac78785fe582156de68
Fulvio
10:33 PM
How do i configure the cors?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:34 PM
When you start the server up, you'd just need to add a --enable-cors flag as a command line argument
Fulvio
Photo of md5-16d994e060b67ac78785fe582156de68
Fulvio
10:46 PM
Im using the docker and it looks like it has cors active by default
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
11:32 PM
Even with Docker, you'd need to specify it as a command line arg...