CORS error with OAuth when user trying to login

So we are trying to use OAuth with the battle.net API. our calls network headers are coming back as this with the error CORS Missing Allow Origin. Can link whatever file or our Battle.net setup with urls but we are stuck with this. Can anyone help?

imgur/a/iHhUlyk

I know I cant link photos so please let me know what you need or code to help me with this situation.

You can’t handle OAuth2 requests from the client-side. You need to implement a back-end server to properly use the API.