Welcome to the new Box Support website. Check out all the details here on what’s changed.

Cors origin not whitelisted

New post

Comments

8 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
  • Enayathulla BirurFazil

    facing below error:

     

    when trying to implement content explorer:

    https://developer.box.com/guides/embed/ui-elements/explorer/

    var contentExplorer = new Box.ContentExplorer();//Show the content explorer

    contentExplorer.show(configData.FOLDER_ID, configData.ACCESS_TOKEN, { container: ".container"});

    ERROR in browser console: explorer.js:173

    {type: 'error', status: 403, code: 'cors_origin_not_whitelisted', context_info: {…}, help_url: 'http://developers.box.com/docs/#errors', …}
    (

    0
    Comment actions Permalink
  • Enayathulla BirurFazil

    Hi Team,

     

    I am trying to Integrate the box content explorer following below snippet:

    https://codepen.io/box-platform/pen/wdWWdN

    in my custom application facing error : 

    type: 'error', status: 403, code: 'cors_origin_not_whitelisted', context_info: {…}, help_url: 'http://developers.box.com/docs/#errors', …}

    0
    Comment actions Permalink

Please sign in to leave a comment.