Cors origin not whitelisted

New post

Comments

6 comments

  • cbetta

    Hi  . I assume you are trying to upload a file from a website. In that case you need to explicitly allow the domain this site runs on to make API calls. We have more written up on that here: https://developer.box.com/reference#cors

    0
    Comment actions Permalink
  • PrasadKundeti

    Thanks  for the quick response,

     

    we are trying from the postman collection, trying to upload a sample file and getting this error

     

    i'm getting this error for creation of folder, getting the file metadata etc., can you please help us?

    0
    Comment actions Permalink
  • cbetta

    Is this the Postman desktop app or the chrome extension?

    0
    Comment actions Permalink
  • PrasadKundeti

    chrome extension

    0
    Comment actions Permalink
  • cbetta

     I don't think we support the chrome extension I think, sadly, as we don't know what the URL of the extension is. If you download the full app, this error would not appear.

    0
    Comment actions Permalink
  • LoCortes

    Good morning,

    I would say is as simple as copying the origin as it is in the cors allowance in the developers console.

     

    So, copy the complete origin including the protocol (chrome-extension)

     

    I use Restlet Chrome plugin and is what I do. It works fine 😉

    Thanks

    0
    Comment actions Permalink

Please sign in to leave a comment.