add bearer authorisation header to request javascript code example Example: bearer token header Authorization: Bearer <token>