<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access-Control-Allow-Origin Issue using Core API via DfB Team API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96685#M2938</link>
    <description>&lt;P&gt;Also,  I am using this locally (no localhost or online domain, just my HDD)&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2015 06:22:40 GMT</pubDate>
    <dc:creator>Abhishek L.</dc:creator>
    <dc:date>2015-06-25T06:22:40Z</dc:date>
    <item>
      <title>Access-Control-Allow-Origin Issue using Core API via DfB Team API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96684#M2937</link>
      <description>&lt;P&gt;I'm trying to use a Dropbox API, specifically one that allows a team administrator to take action for the team member, but I keep getting an access-control-error.&lt;/P&gt;

&lt;P&gt;Here's my code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$(document.body).on('click', '.viewfolders', function() {
    var teamMember = $(this).closest('tr').attr('id');
    //JSONinputs = {"list": "true"};
    jQuery.ajax( {
        url: 'https://api.dropbox.com/1/account/info',
        type: 'GET',
        dataType: 'json',
        contentType: 'application/json',
        headers: {
            'X-Dropbox-Perform-As-Team-Member': + teamMember,
            "Authorization": "Bearer " + access_token
        },
        beforeSend : function( xhr ) {
            xhr.setRequestHeader( "Access-Control-Allow-Origin", "*");                
        },
        success: function(rootresult) {               
           alert('success');
        },
        error: function(response) {
            alert('error ' + JSON.stringify(response));
        }
    });

});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the error I get:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;XMLHttpRequest cannot load &lt;A href="https://api.dropbox.com/1/account/info" rel="nofollow noreferrer" target="_blank"&gt;https://api.dropbox.com/1/account/info&lt;/A&gt;. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Any ideas on what's going on here? Have tried using JSONP as a dataType and gotten a 401 authorization error. Not sure what I'm doing wrong here&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:41:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96684#M2937</guid>
      <dc:creator>Abhishek L.</dc:creator>
      <dc:date>2019-05-29T09:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin Issue using Core API via DfB Team API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96685#M2938</link>
      <description>&lt;P&gt;Also,  I am using this locally (no localhost or online domain, just my HDD)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 06:22:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96685#M2938</guid>
      <dc:creator>Abhishek L.</dc:creator>
      <dc:date>2015-06-25T06:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin Issue using Core API via DfB Team API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96686#M2939</link>
      <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/31038598/access-control-allow-origin-error-when-using-dropbox-api" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/31038598/access-control-allow-origin-error-when-using-dropbox-api&lt;/A&gt; ]&lt;/P&gt;

&lt;P&gt;This looks like a bug on our side. We're looking into it.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 06:42:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96686#M2939</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-06-25T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin Issue using Core API via DfB Team API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96687#M2940</link>
      <description>&lt;P&gt;This should be fixed now.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 04:15:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-Control-Allow-Origin-Issue-using-Core-API-via-DfB-Team/m-p/96687#M2940</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-17T04:15:20Z</dc:date>
    </item>
  </channel>
</rss>

