# Problem Requesting OAuth2 Access Token for HubSpot API - CORS-related?

**URL:** <https://community.postman.com/t/problem-requesting-oauth2-access-token-for-hubspot-api-cors-related/6930>\
**Category:** Help Hub\
**Tags:** oauth2, oauth2-token\
**Created:** [August 1, 2019, 5:38pm UTC](https://community.postman.com/t/problem-requesting-oauth2-access-token-for-hubspot-api-cors-related/6930 "2019-08-01T17:38:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcode](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@bcode](https://community.postman.com/u/bcode)\
**Post date:** [August 1, 2019, 5:38pm UTC](https://community.postman.com/t/problem-requesting-oauth2-access-token-for-hubspot-api-cors-related/6930/1 "2019-08-01T17:38:20Z")

</div>

I’m having trouble using Postman to request an OAuth2 access token (from HubSpot for their API). In my Collection I’ve gone to Authorization, chosen OAuth2, and clicked “Get New Access Token.” I filled in the (hopefully) appropriate values in the popup, and then clicked “Request Token.” It brings up the page to log into HubSpot, but when I click “Log In” the page says “There was a problem logging you in.”

When I look in the JavaScript console, I see the following:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/7/7/778e0e790a1888875821ead7e28de60ad5bd7a86.png)

Does that part about no “Access-Control-Allow-Origin” indicate something about CORS?

If I take the URL that Postman is posting to and paste it into my browser, it works - can log into HubSpot and get redirected to my redirect URL with the code in it - so something is different in Postman.

I’m using the native app v7.3.5 on Windows 10.

Thanks for any help!
