Can the GetForms endpoint be used client-side


#1

Hi all,
I’m trying to make a call to https://developers.hubspot.com/docs/methods/forms/v2/get_form. The problem I receive is a 401 No 'Access-Control-Allow-Origin' header is present on the requested resource however this isn’t a problem if I hit the URL directly in the browser so I feel that maybe I’m doing something wrong.

Has anyone got this call working client-side?
If it does work does anyone have any gotchas to look out for?


#2

So it just seems you are not allowed to make this call via AJAX. Oh well…


#3

is this still the case because i'm able to use Postman to make http requests to hubspot's forms api and it works fine there. but, i get a similar error:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access