<?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 Add Element to Sharepoint List from Custom Visual in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-Element-to-Sharepoint-List-from-Custom-Visual/m-p/2861266#M6096</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a custom visual that use the SpRestLib to add/edit/remove rows in a sharepoint list.&amp;nbsp;I have written the javascript and imported the library and it seems that there are no errors in the code.&amp;nbsp;&lt;BR /&gt;When I run it to test it I recived an error of the networ saying:&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Access to XMLHttpRequest at &lt;A href="https://app.powerbi.com/_api/contextinfo" target="_blank"&gt;https://app.powerbi.com/_api/contextinfo&lt;/A&gt;' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value '&lt;A href="https://teams.powerbi.com" target="_blank"&gt;https://teams.powerbi.com&lt;/A&gt;' that is not equal to the supplied origin.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have tried to do it from a sharepoint aspx page and everything works fine there since it is on the same platform and I have no problem with CORS. I have always had a hard time understanding calls to apis, headers, security, etc. Can anyone help me to solve the issue?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 08:55:14 GMT</pubDate>
    <dc:creator>CristinaD</dc:creator>
    <dc:date>2022-10-25T08:55:14Z</dc:date>
    <item>
      <title>Add Element to Sharepoint List from Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-Element-to-Sharepoint-List-from-Custom-Visual/m-p/2861266#M6096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a custom visual that use the SpRestLib to add/edit/remove rows in a sharepoint list.&amp;nbsp;I have written the javascript and imported the library and it seems that there are no errors in the code.&amp;nbsp;&lt;BR /&gt;When I run it to test it I recived an error of the networ saying:&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Access to XMLHttpRequest at &lt;A href="https://app.powerbi.com/_api/contextinfo" target="_blank"&gt;https://app.powerbi.com/_api/contextinfo&lt;/A&gt;' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value '&lt;A href="https://teams.powerbi.com" target="_blank"&gt;https://teams.powerbi.com&lt;/A&gt;' that is not equal to the supplied origin.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have tried to do it from a sharepoint aspx page and everything works fine there since it is on the same platform and I have no problem with CORS. I have always had a hard time understanding calls to apis, headers, security, etc. Can anyone help me to solve the issue?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:55:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-Element-to-Sharepoint-List-from-Custom-Visual/m-p/2861266#M6096</guid>
      <dc:creator>CristinaD</dc:creator>
      <dc:date>2022-10-25T08:55:14Z</dc:date>
    </item>
  </channel>
</rss>

