Current Behavior
The /api/identity/users/profile request is being sent with Authorization: Bearer null when the auth token is unavailable. This causes the request to fail with a CORS error instead of returning a proper authentication response.
Expected Behavior
The profile API request should only be sent when a valid auth token is available. If no token is present, the request should be skipped or the user should be redirected to the login flow instead of sending Authorization: Bearer null.
Screenshots/Logs
Environment
- Host OS: Mac Linux Windows
- Platform: Docker or Kubernetes
- Meshery Server Version: stable-v
- Meshery Client Version: stable-v
Current Behavior
The /api/identity/users/profile request is being sent with Authorization: Bearer null when the auth token is unavailable. This causes the request to fail with a CORS error instead of returning a proper authentication response.
Expected Behavior
The profile API request should only be sent when a valid auth token is available. If no token is present, the request should be skipped or the user should be redirected to the login flow instead of sending Authorization: Bearer null.
Screenshots/Logs
Environment