Using Fetch with Authorization Header and CORS
问题 I'm trying to get my request to go through to a online game API that I can't seem to get working. I'm using the Fetch API, and some request require Authorization Bearer token , but the request never gets sent with the authorization header. I have tried mode: 'no-cors', credentials: 'include' and obviously putting the Authorization in the header like so header: { 'Authorization': 'Bearer TOKEN' } but the request still does not go with the authorization. Can anyone point me in the right