authorization header is illegal
时间: 2023-09-24 18:08:23 浏览: 87
The "Authorization" header is used in HTTP requests to provide authentication information. If you are receiving an error message stating that the header is illegal, it is likely that the format of the header is incorrect or it is missing required information.
To resolve this issue, you should ensure that the header is properly formatted and includes all necessary authentication information. This may involve reviewing the documentation for the API or service you are working with to determine the correct format for the header.
Examples of correct authorization headers include:
- Basic Authorization: "Authorization: Basic [base64-encoded username and password]"
- Bearer Token Authorization: "Authorization: Bearer [access token]"
If you continue to experience issues, you may need to contact the API or service provider for further assistance.
阅读全文