Skip to content

Access-Control-Max-Age is never honoured #342

@fikriauliya

Description

@fikriauliya

I have a fetch with CORS, with some custom HTTP headers. Due to that, preflight OPTION fetch is required before the actual fetch.

In the return of that preflight, I have set the Access-Control-Max-Age (https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS). However, in the subsequence fetch, preflight OPTION fetch are still happening. In fact, no fetch happens without preflight.

I have checked the answers from http://stackoverflow.com/questions/23543719/cors-access-control-max-age-is-ignored, seems not related to my case.

Is it possible that within fetch module itself, the preflight fetch is always invoked regardless the Access-Control-Max-Age?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions