https://www.ory.sh/ logo
#talk-keto
Title
# talk-keto
f

future-engine-65380

11/22/2021, 10:36 AM
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

steep-lamp-91158

11/22/2021, 11:44 AM
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

future-engine-65380

11/22/2021, 11:49 AM
Yes, will do
s

steep-lamp-91158

11/22/2021, 11:50 AM
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

future-engine-65380

11/22/2021, 12:03 PM
s

steep-lamp-91158

11/22/2021, 12:08 PM
Thx