Cloudflare Images Preflight Failed

For Workers & Pages, what is the name of the domain?

What is the error number?

no error number

What is the issue or error you’re encountering

[Error] Header Access-Control-Allow-Headers has an invalid value: 1 GMT

What steps have you taken to resolve the issue?

Review the preflight request and response to troubleshoot.

What are the steps to reproduce the issue?

Hi,
We’re encountering CORS issues in Safari when using Uppy to upload directly to Cloudflare Images.
The preflight OPTIONS request from Cloudflare Images returns an empty access-control-allow-headers header:
access-control-allow-origin: *
access-control-allow-headers:
access-control-allow-methods: POST, OPTIONS
access-control-max-age: 86400

I believe that this is causing safari to not parse the headers correctly and then fail with message:

[Error] Header Access-Control-Allow-Headers has an invalid value: 1 GMT
[Error] XMLHttpRequest cannot load [direct-upload-url] due to access control checks.

Screenshot of the error

Hi, there was update today which should fix this problem. Could you please check is resolved for you?

This topic was automatically closed after 15 days. New replies are no longer allowed.