APIs & Integrations

Voyager2
Member

Event HTTP API and cross-origin

SOLVE

Is there a way to resolve CORS issues for HubSpot Events HTTP API? I need to allow that for several origins. Only portalId is sent there in the URL - does not look like secret information.

Although such events are accepted by the hubspot server but I would like to avoid CORS warnings

 

0 Upvotes
1 Accepted solution
Voyager2
Solution
Member

Event HTTP API and cross-origin

SOLVE

Well, no reply. I've just made a server-side proxy for these requests.

View solution in original post

0 Upvotes
3 Replies 3
Willson
HubSpot Employee
HubSpot Employee

Event HTTP API and cross-origin

SOLVE

Hi @Voyager2 

 

I can see that this question was asked on a previous thread where we addressed a CORS question. I'll go ahead and update that thread so that users with a similar question to this are redirected here. 

 

To look into this for you, would you be able to provide a screenshot of the specific error you're seeing from your end when using the Events HTTP API?

Product Manager @ HubSpot
0 Upvotes
Voyager2
Member

Event HTTP API and cross-origin

SOLVE

console.jpg

@Willson ,This is the screen. Just usual CORS warning. No CORS headers in the response. It would be good if it is possible to setup a bunch of origins in the HubSpot accont to allow CORS headers for them.

It is not very convenient to proxy such requests with user's server to avoid warnings. 

0 Upvotes
Voyager2
Solution
Member

Event HTTP API and cross-origin

SOLVE

Well, no reply. I've just made a server-side proxy for these requests.

0 Upvotes