<?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: Getting http by HEC in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/547169#M91082</link>
    <description>&lt;P&gt;I send the POST events with Postman to &lt;A href="http://SPLUNK" target="_blank"&gt;http://SPLUNK_SERVER_NAME:8088/services/collector/event&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, I use token input.&lt;/P&gt;&lt;P&gt;The error is like that:&lt;/P&gt;&lt;P&gt;Access to XMLHttpRequest at '&lt;A href="http://SPLUNK" target="_blank"&gt;http://SPLUNK_SERVER_NAME:8088/services/collector/event&lt;/A&gt;' from origin 'http://localhost:4200' has been blocked by CORS policy: Request header field content- :4200/#/map:1 type is not allowed by Access-Control-Allow-Headers in preflight response.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 09:28:00 GMT</pubDate>
    <dc:creator>gilsegev468</dc:creator>
    <dc:date>2021-04-08T09:28:00Z</dc:date>
    <item>
      <title>Getting http by HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/546613#M91033</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have Splunk 8.0.4.&lt;/P&gt;&lt;P&gt;I tried to send HTTP events from my browser to my index with HEC.&lt;/P&gt;&lt;P&gt;The requests are denied because of CORS error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get some help for the situation, thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 12:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/546613#M91033</guid>
      <dc:creator>gilsegev468</dc:creator>
      <dc:date>2021-04-04T12:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting http by HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/546628#M91037</link>
      <description>&lt;P&gt;More details, please.&amp;nbsp; How exactly are you sending the events to HEC?&amp;nbsp; Have you configured and are you using an input token?&amp;nbsp; What is the exact text of the error message you get?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 16:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/546628#M91037</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-04-04T16:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting http by HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/547169#M91082</link>
      <description>&lt;P&gt;I send the POST events with Postman to &lt;A href="http://SPLUNK" target="_blank"&gt;http://SPLUNK_SERVER_NAME:8088/services/collector/event&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, I use token input.&lt;/P&gt;&lt;P&gt;The error is like that:&lt;/P&gt;&lt;P&gt;Access to XMLHttpRequest at '&lt;A href="http://SPLUNK" target="_blank"&gt;http://SPLUNK_SERVER_NAME:8088/services/collector/event&lt;/A&gt;' from origin 'http://localhost:4200' has been blocked by CORS policy: Request header field content- :4200/#/map:1 type is not allowed by Access-Control-Allow-Headers in preflight response.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 09:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/547169#M91082</guid>
      <dc:creator>gilsegev468</dc:creator>
      <dc:date>2021-04-08T09:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting http by HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/547181#M91086</link>
      <description>&lt;P&gt;I'm not sure what to do about that, but I'm pretty sure it's not a Splunk problem.&amp;nbsp; See if&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors&lt;/A&gt;&amp;nbsp;helps at all.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 12:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/547181#M91086</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-04-08T12:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting http by HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/547523#M91121</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Cross-origin resource sharing is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In other words, in order to make a successful&amp;nbsp;request from "client" ( a web page on chrome) to a remote server from another domain, the server needs to specify the&amp;nbsp; "client" domain in the response header. Meaning that the IP address or the domain name of the client should be specify&amp;nbsp;in&amp;nbsp;&lt;STRONG&gt;Access-Control-Allow-Origin&amp;nbsp;&amp;nbsp;response header.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In our case, the "client" is&amp;nbsp;&lt;SPAN&gt; a web page on chrome and the "remote server" is splunk.&amp;nbsp; To solve our problem we need to return &lt;STRONG&gt;response headers&amp;nbsp;&lt;/STRONG&gt;such as&amp;nbsp;&lt;STRONG&gt;Access-Control-Allow-Origin: "client-ip"&amp;nbsp;&lt;/STRONG&gt;in&amp;nbsp;the response of&amp;nbsp;our clients' post requests. In addition, It is possible that we will need to add more response header with the format of&amp;nbsp;&lt;STRONG&gt;Access-Control-Allow-XXXX&amp;nbsp;&lt;/STRONG&gt;to the responses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. How can splunk be configure such that it will specify the origins in the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Access-Control-Allow-Origin&amp;nbsp;&lt;/STRONG&gt;response header ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. How can custom response headers can be configure for the response of splunk post requests ?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 08:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-http-by-HEC/m-p/547523#M91121</guid>
      <dc:creator>gilsegev468</dc:creator>
      <dc:date>2021-04-11T08:10:02Z</dc:date>
    </item>
  </channel>
</rss>

