<?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 Why am I unable to call HEC instance from Splunk Cloud form javascript file? CORS issue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-call-HEC-instance-from-Splunk-Cloud-form/m-p/627656#M107729</link>
    <description>&lt;P&gt;Hi, I have trial account with Splunk Cloud, where I am doing POC on sending the API logs to the SPlunk dashobard.&lt;/P&gt;
&lt;P&gt;So, fort that I have created HEC token, which is wokring fine with Postman and curl command.&amp;nbsp;&lt;BR /&gt;But when I am actually trying to use that with-in my react app, to send some data by calling the API with post request, I am getting below error, which I can understand becaus eits trying to access different domain and pslunk instance is not accepting request from other domian.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-01-19 at 2.30.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23455iE31AD5801D30E5D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-01-19 at 2.30.00 PM.png" alt="Screen Shot 2023-01-19 at 2.30.00 PM.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 2023-01-19 at 2.30.00 PM.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And I am not sure how to fix this, may be is there some setting we can do on instance level to allow traffic from my specific domain ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 15:56:08 GMT</pubDate>
    <dc:creator>sid_sinha</dc:creator>
    <dc:date>2023-01-20T15:56:08Z</dc:date>
    <item>
      <title>Why am I unable to call HEC instance from Splunk Cloud form javascript file? CORS issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-call-HEC-instance-from-Splunk-Cloud-form/m-p/627656#M107729</link>
      <description>&lt;P&gt;Hi, I have trial account with Splunk Cloud, where I am doing POC on sending the API logs to the SPlunk dashobard.&lt;/P&gt;
&lt;P&gt;So, fort that I have created HEC token, which is wokring fine with Postman and curl command.&amp;nbsp;&lt;BR /&gt;But when I am actually trying to use that with-in my react app, to send some data by calling the API with post request, I am getting below error, which I can understand becaus eits trying to access different domain and pslunk instance is not accepting request from other domian.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-01-19 at 2.30.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23455iE31AD5801D30E5D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-01-19 at 2.30.00 PM.png" alt="Screen Shot 2023-01-19 at 2.30.00 PM.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 2023-01-19 at 2.30.00 PM.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And I am not sure how to fix this, may be is there some setting we can do on instance level to allow traffic from my specific domain ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 15:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-call-HEC-instance-from-Splunk-Cloud-form/m-p/627656#M107729</guid>
      <dc:creator>sid_sinha</dc:creator>
      <dc:date>2023-01-20T15:56:08Z</dc:date>
    </item>
  </channel>
</rss>

