如何使用onedrive选择器处理多个租户

时间:2017-04-06 10:05:38

标签: javascript onedrive

我在使用https://js.live.net/v5.0/OneDrive.js

的onedrive选择器时遇到问题

我有不同的重定向网址

http://dev.example.com

http://dev1.example.com

通过给这两个网址,我面临这样的问题 unique domain

当我提供重定向网址时,它无效。onedrive picker

我尝试使用https://js.live.net/v7.0/OneDrive.js,而我在pop中使用这个只有重定向网址正在加载并重定向并关闭弹出窗口我没有得到回调成功

<script type="text/javascript" src="https://js.live.net/v5.0/OneDrive.js" id="onedrive-js" client-id="APP_ID"></script>


<script type="text/javascript">
      function launchOneDriveSaver(){
var saverOptions = {
      success: function(files){
            console.log(files);
      },
     progress: function(p) {
    // upload is progressing
    },
    cancel: function(){
    // upload was cancelled
   },
   error: function(e) {
  // an error occured
  }

        OneDrive.save(saverOptions);
      }
</script>

1 个答案:

答案 0 :(得分:0)

您是否尝试过添加根域?试试这个订单:

http://example.com
http://dev.example.com
http://dev1.example.com