<?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: No 'Access-Control-Allow-Origin' header is present on the requested resource. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/No-Access-Control-Allow-Origin-header-is-present-on-the/m-p/174441#M5678</link>
    <description>&lt;P&gt;Check if this link helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource" target="_blank"&gt;http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 06:04:03 GMT</pubDate>
    <dc:creator>KumarDarmesh</dc:creator>
    <dc:date>2017-05-12T06:04:03Z</dc:date>
    <item>
      <title>No 'Access-Control-Allow-Origin' header is present on the requested resource.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/No-Access-Control-Allow-Origin-header-is-present-on-the/m-p/170340#M5631</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have one MVC Web Application(Embeded PowerBI)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which&amp;nbsp;displyed&amp;nbsp;dashboard from powerBI service(Its a&amp;nbsp;simple Web Application didn't used any WebAPI.). PowerBI Dashboard&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;contains&amp;nbsp;an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;image on it, by clicking on the image we redirects it to one custom link and it works fine from dashboard,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;same thing not works from our Embeded PowerBI web application. When I clicked on image following error has been thrown (client site error in Crome)-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error :&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;XMLHttpRequest cannot load.....No 'Access-Control-Allow-Origin' header is present on the requested resource.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To resolve this&amp;nbsp;I have tried below methods but it’s does not worked -&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Added Reference of System.Web.Http.Cors library from Nuget Package.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Added 'EnableCors' attribute at controller as well as action level -&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[EnableCors(origins: "*", headers: "*", methods: "*")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Adding Web server settings in Web.config file.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;'&lt;/SPAN&gt;&amp;lt;system.webServer&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;httpProtocol&amp;gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;customHeaders&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/customHeaders&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/httpProtocol&amp;gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/system.webServer&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me regarding this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 10:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/No-Access-Control-Allow-Origin-header-is-present-on-the/m-p/170340#M5631</guid>
      <dc:creator>shirish</dc:creator>
      <dc:date>2017-05-05T10:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/No-Access-Control-Allow-Origin-header-is-present-on-the/m-p/174441#M5678</link>
      <description>&lt;P&gt;Check if this link helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource" target="_blank"&gt;http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 06:04:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/No-Access-Control-Allow-Origin-header-is-present-on-the/m-p/174441#M5678</guid>
      <dc:creator>KumarDarmesh</dc:creator>
      <dc:date>2017-05-12T06:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/No-Access-Control-Allow-Origin-header-is-present-on-the/m-p/198382#M6326</link>
      <description>&lt;P&gt;Can you expand on how to enable the header properly?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:10:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/No-Access-Control-Allow-Origin-header-is-present-on-the/m-p/198382#M6326</guid>
      <dc:creator>Venura</dc:creator>
      <dc:date>2017-06-21T11:10:14Z</dc:date>
    </item>
  </channel>
</rss>

