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
5
31mo
Jul 05, 2021 (31 months ago)
Fulvio
Fulvio
10:33 PMHow do i configure the cors?
Jason
Jason
10:34 PMWhen you start the server up, you'd just need to add a
--enable-cors
flag as a command line argument10:35
Jason
10:35 PMFulvio
Fulvio
10:46 PMIm using the docker and it looks like it has cors active by default
Jason
Jason
11:32 PMEven with Docker, you'd need to specify it as a command line arg...
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Configuring CORS Settings for Whitelisting Domains
Fulvio needed help to configure CORS settings to whitelist specific domains. Jason clarified it's not currently supported, but suggested starting the docker container with `--enable-cors` and reading the documentation.
13
30mo
Resolving CORS Error in Typesense Server Setup
Digamber had a CORS error with Typesense server setup. Kishore Nallan solved the error by suggesting to use only `--enable-cors` without adding `=true`.
6
25mo
Troubleshooting CORS Errors After Upgrading TypeSense Version
em1nos experienced CORS errors after upgrading TypeSense on their server. Kishore Nallan suggested setting environment variable as TRUE which solved the issue.
6
19mo