CORS issue while making an Ajax request for oauth2 access token

OAuth2 auth endpoint doesn’t support AJAX by design. It’s an entry point to the authentication system, so you must get there by redirect. The result of the authentication is again a redirect to the URL you provide, so AJAX doesn’t make much sense there.

Leave a Comment