# Uppy XHR Upload Failing on Safari - Weird CORS Error

**URL:** <https://community.transloadit.com/t/uppy-xhr-upload-failing-on-safari-weird-cors-error/17451>\
**Category:** Uppy\
**Created:** [January 31, 2025, 5:48pm UTC](https://community.transloadit.com/t/uppy-xhr-upload-failing-on-safari-weird-cors-error/17451 "2025-01-31T17:48:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![utku](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/utku/32/1311_2.png) [@utku](https://community.transloadit.com/u/utku)\
**Post date:** [January 31, 2025, 5:48pm UTC](https://community.transloadit.com/t/uppy-xhr-upload-failing-on-safari-weird-cors-error/17451/1 "2025-01-31T17:48:57Z")

</div>

Hi everyone,

seeing this strange Safari console error when trying to upload images through Uppy on Safari:

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

```

Our setup uses a simple Uppy’s XHR upload:

```auto
.use(XHR, {
  endpoint: "one-time upload URL from Cloudflare Direct Creator Upload",
  formData: true,
  fieldName: "file",
  allowedMetaFields: [],
})

```

The weird part - works fine everywhere except Safari…(as expected) The “1 GMT” in the error looks like a date stamp? Here’s also an example preflight OPTIONS response from Cloudflare Direct Creator Upload link:

```auto
-H "Origin: https://example.com" \
-H "Access-Control-Request-Method: GET" \
"[direct creator upload link]"
HTTP/2 200 
date: Fri, 31 Jan 2025 17:47:26 GMT
content-length: 0
access-control-allow-origin: *
access-control-allow-headers: 
access-control-allow-methods: POST, OPTIONS
access-control-max-age: 86400
server: cloudflare

```

Would appreciate any help…
