<?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: MIME type ('text/plain') is not executable in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MIME-type-text-plain-is-not-executable/m-p/271292#M16046</link>
    <description>Based on the output you shared, the browser is refusing to load the file as a script because the Content-Type returned isn't an executable type. &lt;BR /&gt;&lt;BR /&gt;The Content-Type that Dropbox returns is based on the file extension. It sounds like you probably have a plain text extension on the file, e.g., ".txt". You would need to switch to using ".js" as the file extension in Dropbox if you want it to be served as "application/javascript" instead, so that the browser will load it.</description>
    <pubDate>Wed, 04 Apr 2018 20:01:09 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-04-04T20:01:09Z</dc:date>
    <item>
      <title>MIME type ('text/plain') is not executable</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MIME-type-text-plain-is-not-executable/m-p/271231#M16036</link>
      <description>&lt;P&gt;Hello Dropboxers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing a web app with the use of HTTP endpoints. Thus far, the Power user(owner of a file) can create_a_shared_link with settings&amp;nbsp;for a specific file and share it with others. When a Guest user (NOT owner of the file) logs in to my app i grab the shared link ( that was&amp;nbsp;provided ), i replace the &lt;A href="http://www.dropbox.com/s/blablabla/myFile" target="_blank"&gt;www.dropbox.com/s/blablabla/myFile&lt;/A&gt; with&amp;nbsp; dl.dropboxusercontent.com/s/&lt;SPAN&gt;blablabla/myFile and&amp;nbsp;&lt;/SPAN&gt;i create a dymanic&amp;nbsp;Javascript&amp;nbsp;script with src="The shared link" to download the file and read it's response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the script is placed in the HTML an error occurs:&amp;nbsp; &amp;nbsp;"Refused to execute script from '&lt;SPAN&gt;dl.dropboxusercontent.com/s/&lt;/SPAN&gt;&lt;SPAN&gt;blablabla/myFile&lt;/SPAN&gt;' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not find a solution to this problem. Can you provide some help please?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MIME-type-text-plain-is-not-executable/m-p/271231#M16036</guid>
      <dc:creator>kostas k.7</dc:creator>
      <dc:date>2019-05-29T09:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: MIME type ('text/plain') is not executable</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MIME-type-text-plain-is-not-executable/m-p/271292#M16046</link>
      <description>Based on the output you shared, the browser is refusing to load the file as a script because the Content-Type returned isn't an executable type. &lt;BR /&gt;&lt;BR /&gt;The Content-Type that Dropbox returns is based on the file extension. It sounds like you probably have a plain text extension on the file, e.g., ".txt". You would need to switch to using ".js" as the file extension in Dropbox if you want it to be served as "application/javascript" instead, so that the browser will load it.</description>
      <pubDate>Wed, 04 Apr 2018 20:01:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MIME-type-text-plain-is-not-executable/m-p/271292#M16046</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-04T20:01:09Z</dc:date>
    </item>
  </channel>
</rss>

