Skip to content

Add Pragma and Cache-Control to Access-Control-Allow-Headers #5354

@fatbattk

Description

@fatbattk

Is your feature request related to a problem? Please describe.

IE 11 caches (304) same requests and the only way to force it not to is by passing the Pragma and Cache-Control headers.
https://stackoverflow.com/questions/45912500/reactjs-ie11-not-making-new-http-request-using-cached-data

However Parse Server's Access-Control-Allow-Headers does not allow both those headers.

Access to fetch at '?limit=1&where=%7B%22testId%22%3A%22012345%22%7D' from origin 'http://localhost:8080' has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.

Describe the solution you'd like

Allow more headers to pass, particularly Pragma and Cache-Control.

Describe alternatives you've considered

Add cache-busting params to the request but that is blocked by Parse Server too, which is valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions