Mar 23, 20238:54 AM - edited Mar 23, 20238:56 AM
Member
Error 415 when uploading files
Well, I guess the issue is that the fetch api as it is client side is subject to cross origin problems, as this endpoint requests authorization you just be able to reach it from your backend, that's why you're request works with the request node package but no with fetch api.
If you want to fetch any info from this api to the frontend, you could create an internal api to gather the data from hubspot and expose it to your client side.