Blocked by CORS policy Issue


I am getting the following error and not able to load a JS file.

Access to XMLHttpRequest at ‘’ from origin ‘’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Wondering how can I fix this?

Curl returns

curl -I -XOPTIONS \ -H ‘origin:’ \ -H ‘access-control-request-method: GET’


HTTP/1.1 200 OK

X-GUploader-UploadID: ABg5-Uw617_fJ3bZlpoWxo7oz46Rm_q1DlbdB-IHdYN9wZb2Nc-dXoW1pxrn_DdPjsY6sIra3ROVIysRBlfvonZ7x3xTrgKtlw

Access-Control-Allow-Origin: *

Access-Control-Max-Age: 3600

Access-Control-Allow-Methods: GET

Access-Control-Allow-Headers: Content-Type

Date: Fri, 11 Jun 2021 11:32:30 GMT

Expires: Fri, 11 Jun 2021 11:32:30 GMT

Cache-Control: private, max-age=0

Content-Length: 0

Server: UploadServer

Content-Type: text/html; charset=UTF-8

Alt-Svc: clear

curl: (6) Could not resolve host:

curl: (6) Could not resolve host: