Making our own preflight request against the serve...
# talk-keto
f
Making our own preflight request against the server with Curl (HTTP OPTIONS) will not give us any headers in the reponse - only the 200 OK.
s
Hm, I do get:
Copy code
$ curl -X OPTIONS <http://127.0.0.1:4466/check> -i
HTTP/1.1 200 OK
Allow: GET, OPTIONS, POST
Date: Mon, 22 Nov 2021 11:42:17 GMT
Content-Length: 0
but no CORS headers indeed
1
it seems that CORS config values are ignored
can you open an issue for that?
f
Yes, will do
s
e.g.
Copy code
serve:
  read:
    host: 0.0.0.0
    port: 4466
    cors:
      enabled: true
      allowed_origins:
        - "*"
      allowed_methods:
        - "GET"
        - "POST"
        - "PUT"
        - "PATCH"
        - "DELETE"
      max_age: 10
      debug: true
gives me the same
OPTIONS
response
as above, but I'd expect it to be different
f
s
Thx