Skip to main content
Box Employee
May 23, 2025 4:57 AM UTC
Question

CORS error while uploading file to box

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

    Box Employee
    May 23, 2025 4:57 AM UTC

    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

    Translate