<?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: G Web error message No 'Access-Control-Allow-Origin' header is present in G Web Development Software</title>
    <link>https://ni.lithium.com/t5/G-Web-Development-Software/G-Web-error-message-No-Access-Control-Allow-Origin-header-is/m-p/4251474#M336</link>
    <description>&lt;P&gt;Hey!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a similar issue lately but with G Web so I'm not sure if this will work with NXG and the Web Module (even though G Web is the web module based on NXG).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In G Web there is an extra VI to configure CORS and to include credentials with a request if needed maybe this might help.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snippet.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/91319f0ff67db3e79d221d874e037ecea2533d70/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303732383869353432343335333246414242444439382f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Snippet.png" alt="Snippet.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 10:19:13 GMT</pubDate>
    <dc:creator>Jens_S</dc:creator>
    <dc:date>2022-08-25T10:19:13Z</dc:date>
    <item>
      <title>G Web error message No 'Access-Control-Allow-Origin' header is present</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/G-Web-error-message-No-Access-Control-Allow-Origin-header-is/m-p/4250507#M333</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to do an HTTP POST request with LabVIEW NXG 5.1.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run the code from a .gvi code works ok.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jesushidalgo_1-1661037395876.png" style="width: 400px;"&gt;&lt;img src="https://ni.lithium.com/t5/image/serverpage/image-id/307082i0E1B9DF2912BF932/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jesushidalgo_1-1661037395876.png" alt="jesushidalgo_1-1661037395876.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jesushidalgo_2-1661039422382.png" style="width: 400px;"&gt;&lt;img src="https://ni.lithium.com/t5/image/serverpage/image-id/307083i182650000D1EC0FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jesushidalgo_2-1661039422382.png" alt="jesushidalgo_2-1661039422382.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but when I run it from a .gviweb code, it returns the following response:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"JavaScript message: Failed to load &lt;A href="https://console-vip.helium.com/api/v1/down/" target="_blank"&gt;https://console-vip.helium.com/api/v1/down/&lt;/A&gt;...: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '&lt;A href="http://localhost" target="_blank"&gt;http://localhost&lt;/A&gt;' is therefore not allowed access. The response had HTTP status code 404. in main.html at line 0"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jesushidalgo_0-1661039891275.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/fd14617880accad99d14d00552d8361718f6d8b1/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303730383469363631354535463035454532413545372f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="jesushidalgo_0-1661039891275.png" alt="jesushidalgo_0-1661039891275.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I remove the HTTP Handler and the ADD header nodes, I got a successful 200 code from the HTTP POST request, but the server API drop the request with the following message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"description": "Failed to queue downlink (downlink_decode failed): payload_raw_not_found",&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jesushidalgo_1-1661041353690.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/5cd0dd894322a0656360d08e18ed78c104fa03bc/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303730383969393339353534353238364632303731392f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="jesushidalgo_1-1661041353690.png" alt="jesushidalgo_1-1661041353690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jesushidalgo_2-1661041375651.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/4b320ae5d270469ae1f92e4179eed2f292e03c0e/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303730393069324241343636363033303032323036332f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="jesushidalgo_2-1661041375651.png" alt="jesushidalgo_2-1661041375651.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will appreciate suggestions!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 00:24:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/G-Web-error-message-No-Access-Control-Allow-Origin-header-is/m-p/4250507#M333</guid>
      <dc:creator>jesushidalgo</dc:creator>
      <dc:date>2022-08-21T00:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: G Web error message No 'Access-Control-Allow-Origin' header is present</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/G-Web-error-message-No-Access-Control-Allow-Origin-header-is/m-p/4251474#M336</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a similar issue lately but with G Web so I'm not sure if this will work with NXG and the Web Module (even though G Web is the web module based on NXG).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In G Web there is an extra VI to configure CORS and to include credentials with a request if needed maybe this might help.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snippet.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/91319f0ff67db3e79d221d874e037ecea2533d70/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303732383869353432343335333246414242444439382f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Snippet.png" alt="Snippet.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 10:19:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/G-Web-error-message-No-Access-Control-Allow-Origin-header-is/m-p/4251474#M336</guid>
      <dc:creator>Jens_S</dc:creator>
      <dc:date>2022-08-25T10:19:13Z</dc:date>
    </item>
  </channel>
</rss>

