CORS Error when making API requests with React.js and Axios

I have followed the documentation provided by HubSpot for making API requests, but I am consistently receiving a CORS error. This occurs when attempting to make a POST request to the following API endpoint:API Endpoint: https://api.hubapi.com/crm/v3/objects/contacts

I have ensured that the necessary headers, including Authorization and Content-Type, are set correctly. However, the server is not allowing the request from my React.js application due to CORS restrictions.

Hey, @vijeshnk :waving_hand: Welcome to our community.

Please include a code example and the full error body. Without these details, it’s likely impossible for the community to assist you.

Question — does it wok when you make the same request using Postman?

Best,

Jaycee