Troubleshooting CORS Enablement in Typesense Server
TLDR Pavan was unable to access Typesense server despite enabling CORS. Kishore Nallan confirmed that CORS was working fine as the required header was present.
Powered by Struct AI
5
17mo
Aug 04, 2022 (17 months ago)
Pavan
Pavan
08:43 AMHi,
I enabled CORS in my typesense server but I'm not able to access it from browser.
Can someone help me with this?
I enabled CORS in my typesense server but I'm not able to access it from browser.
Can someone help me with this?
Kishore Nallan
Kishore Nallan
09:10 AMWhat version of Typesense are you using? Recent versions of Typesense enables cors by default.
Can you load the /health end-point in your browser and ensure that you have
Can you load the /health end-point in your browser and ensure that you have
*access-control-allow-origin:* *
header?Pavan
Pavan
09:13 AM0.23.1 Version I'm using.
And yes, the header is present
And yes, the header is present
Kishore Nallan
Kishore Nallan
09:15 AMThen CORS is enabled properly. No issue with Typesense.
Pavan
Pavan
09:30 AMOkay
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
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
Resolving CORS-related Issues with Typesense Server
Edson experienced typesense-related CORS issues, which Jason solved by advising to add the `--enable-cors` flag during the startup of the typesense server. The difference in how typesense instantsearch adapter works was also clarified.
7
24mo
Troubleshooting CORS Issues in Self-Hosted Typesense
Ankit faced CORS issues with self-hosted Typesense. Jason suggested correct configuration but the problem was mixed content (HTTP vs HTTPS).
6
6mo