Closed exhaler closed 4 months ago
Hi @exhaler this appears to be specific to static web apps. I tried with a standalone function app and wasn't seeing any problems. I believe this is actually related to https://github.com/Azure/static-web-apps/issues/34
Closing in favor of static web apps bug
Repro steps
Provide the steps required to reproduce the problem:
Github repo: https://github.com/exhaler/DebugSample
request.headers.get("authorization");
Expected behavior
To get the full authorization string being sent
Bearer eyJhbGciOiJSUzI1NiIsImtpZ....
Actual behavior
Authorization header is being truncated to 365 characters, full sample:
Known workarounds
Sending the token using a custom header, example
X-Auth-Token
, works fine and is not truncated.Related information