Getting Data In

Why am I unable to call HEC instance from Splunk Cloud form javascript file? CORS issue

sid_sinha
New Member

Hi, I have trial account with Splunk Cloud, where I am doing POC on sending the API logs to the SPlunk dashobard.

So, fort that I have created HEC token, which is wokring fine with Postman and curl command. 
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.

Screen Shot 2023-01-19 at 2.30.00 PM.png

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 ?

 

Can someone please help, 

 

 

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...