acoustic-insurance-23566
12/07/2023, 2:16 PMory.toSession(undefined, undefined, {
headers: {
"Cache-Control": "max-age=0",
},
})
raises an error Expected 0-2 arguments, but got 3.ts(2554)
2. using
ory.toSession(undefined, {
headers: {
"Cache-Control": "max-age=0",
},
})
seems to work as expected - I can see the cache-control header in the request. But the request results in a CORS error: "Cross-Origin Resource Sharing error: PreflightMissingAllowOriginHeader".
This is for development for now, we're connecting to Ory through the Ory Tunnel.
Would you have any pointers? We have a use-case where we want to set the cache expiration to be a bit more conservative than your defaults, so this would be a pretty useful capability to have.acoustic-insurance-23566
12/07/2023, 2:17 PMfetch
, setting that extra header seems to be problematic: