Fetching submitted Form Data via API

Hello there!
Is there a way to fetch all submission data via form ID from a custom module?
I’ve reviewed this documentation, but I couldn’t find an endpoint for fetching submissions. I’ve also checked this discussion. After creating a private app and its associated token, I attempted to execute a fetch call in the module.js file. However, the browser console returns this error:
Access to fetch at ‘https://api.hubapi.com/form-integrations/v1/submissions/forms/:MY_FORM_ID’ from origin ‘https://MY_DOMAIN_URL’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

You’re encountering a CORS issue because you’re trying to make a request to the HubSpot API directly from the browser (frontend JavaScript in a module.js file). HubSpot’s API doesn’t include the Access-Control-Allow-Origin header in its response, which means you can’t call it directly from the client-side due to browser security restrictions. must go through a server-side proxy.