While testing on my local environment I use a CORS plugin to be able to do this kind of request .
However when deployed im getting the CORS error. How can I bypass this limitation so that newsletter works on my live site. The error im getting is the following.
XMLHttpRequest cannot load https://forms.hubspot.com/uploads/form/v2/4506xx/xxe6eaa5-xxxx-4f81-a498-1198687031f7. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://jerxxx-fe-dev.xxxx.com’ is therefore not allowed access.
Note: live site address is censored. I can provide it if needed