<?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 Splunk Rest Request using browser - Unauthorized because of Origin header in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-Rest-Request-using-browser-Unauthorized-because-of-Origin/m-p/399776#M9681</link>
    <description>&lt;P&gt;"services/search/jobs/" Splunk endpoint is replying “Unauthorized” (HTTP 401) due to the presence of the “Origin”/”Referer” parameter in the header request.&lt;BR /&gt;
To best integrate the browser/client all to Splunk, can we allow all or specific origin header or remove this restriction? &lt;/P&gt;

&lt;P&gt;it works fine for doing it with a linux curl. But even by adding the “Origin” header parameter and it won’t work.&lt;BR /&gt;
Basically, for using the front-end, we need the splunk endpoint to allow the origin header from a specific or all orginis.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 22:04:54 GMT</pubDate>
    <dc:creator>mibrahim8</dc:creator>
    <dc:date>2019-07-17T22:04:54Z</dc:date>
    <item>
      <title>Splunk Rest Request using browser - Unauthorized because of Origin header</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Rest-Request-using-browser-Unauthorized-because-of-Origin/m-p/399776#M9681</link>
      <description>&lt;P&gt;"services/search/jobs/" Splunk endpoint is replying “Unauthorized” (HTTP 401) due to the presence of the “Origin”/”Referer” parameter in the header request.&lt;BR /&gt;
To best integrate the browser/client all to Splunk, can we allow all or specific origin header or remove this restriction? &lt;/P&gt;

&lt;P&gt;it works fine for doing it with a linux curl. But even by adding the “Origin” header parameter and it won’t work.&lt;BR /&gt;
Basically, for using the front-end, we need the splunk endpoint to allow the origin header from a specific or all orginis.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 22:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Rest-Request-using-browser-Unauthorized-because-of-Origin/m-p/399776#M9681</guid>
      <dc:creator>mibrahim8</dc:creator>
      <dc:date>2019-07-17T22:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rest Request using browser - Unauthorized because of Origin header</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Rest-Request-using-browser-Unauthorized-because-of-Origin/m-p/399777#M9682</link>
      <description>&lt;P&gt;In Server.conf change the parameter below to * to enable all the connections please check the details in the following link &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/Serverconf"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/Serverconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;crossOriginSharingPolicy =  ...&lt;BR /&gt;
* List of the HTTP Origins for which to return Access-Control-Allow-* (CORS)&lt;BR /&gt;
  headers.&lt;BR /&gt;
* These headers tell browsers that web applications are trusted at those sites&lt;BR /&gt;
  to make requests to the REST interface.&lt;BR /&gt;
* The origin is passed as a URL without a path component (for example&lt;BR /&gt;
  "&lt;A href="https://app.example.com:8000%22"&gt;https://app.example.com:8000"&lt;/A&gt;).&lt;BR /&gt;
* This setting can take a list of acceptable origins, separated&lt;BR /&gt;
  by spaces and/or commas.&lt;BR /&gt;
* Each origin can also contain wildcards for any part.  Examples:&lt;BR /&gt;
    &lt;EM&gt;://app.example.com:&lt;/EM&gt;  (either HTTP or HTTPS on any port)&lt;BR /&gt;
    https://&lt;EM&gt;.example.com  (any host under example.com, including&lt;BR /&gt;
    example.com itself)&lt;BR /&gt;
* An address can be prefixed with a '!' to negate the match, with&lt;BR /&gt;
  the first matching origin taking precedence.  For example,&lt;BR /&gt;
  "!&lt;/EM&gt;://evil.example.com:* &lt;EM&gt;://&lt;/EM&gt;.example.com:&lt;EM&gt;" to not avoid&lt;BR /&gt;
  matching one host in a domain&lt;BR /&gt;
* A single "&lt;/EM&gt;" can also be used to match all origins&lt;BR /&gt;
* No default.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 15:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Rest-Request-using-browser-Unauthorized-because-of-Origin/m-p/399777#M9682</guid>
      <dc:creator>mibrahim8</dc:creator>
      <dc:date>2019-08-02T15:17:02Z</dc:date>
    </item>
  </channel>
</rss>

