Skip to main content
Question

CORS error while uploading file to box

  • May 23, 2025
  • 1 reply
  • 21 views

Forum|alt.badge.img

BOX2_NGW6AVvOUtjYOrB4zyHVQw.pngHi Team,

I have added the origin from where I am passing request to box i.e "https://contentintelligence.lightning.force.com" in the Allowed Origin but still I am getting "Access to XMLHttpRequest at 'https://upload.box.com/api/2.0/files/content' from origin 'https://contentintelligence.lightning.force.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

I have been facing this issue for many days. Is there anything else needs to done in this?

Thanks

1 reply

Forum|alt.badge.img

Hi Nidhi,

That error sometimes also shows up if there is an error with the authentication.

For example, it happens to me frequently when I'm using a developer token, which is valid for 60 minutes, and I don't realize it has expired.

Let us know if this helps.

Cheers