Getting Data In

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

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!

New Splunk Observability innovations: Deeper visibility and smarter alerting to ...

You asked, we delivered. Splunk Observability Cloud has several new innovations giving you deeper visibility ...

Synthetic Monitoring: Not your Grandma’s Polyester! Tech Talk: DevOps Edition

Register today and join TekStream on Tuesday, February 28 at 11am PT/2pm ET for a demonstration of Splunk ...

Instrumenting Java Websocket Messaging

Instrumenting Java Websocket MessagingThis article is a code-based discussion of passing OpenTelemetry trace ...