-
-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for CORS #7
Comments
@jasonbosco Added via 523c142 Docker image |
According to the spec the server should send the value of the Not sure why this is happening since it works for me in CURL... Can you try:
|
@kishorenc Interestingly, when I try that curl out, I get blank value for headers:
Another thing I noticed is that if there's only one header passed in the request, say just
|
@kishorenc Following up from this comment, I tested out I'm now running into this issue: The browser is sending the request and receiving a response, but it's refusing to process the response for the GET request because there are no Looking at the MDN documentation for CORS, Access-Control headers need to be mirrored on the actual GET/POST requests' responses in addition to the pre-flight OPTIONS request. |
@jasonbosco Okay, |
Alright! Works fine now. |
@kishorenc I started writing a Swagger Spec for the API and noticed that the API is throwing a 404 for
OPTIONS
requests (triggered by the browser when Swagger Editor tries to call the Typesense API).Could you add support for passing in a CORS whitelist, may be as a boot parameter?
v0.7.0
The text was updated successfully, but these errors were encountered: