You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The req.referrer contains a trailing slash (/), while req.url.origin does not. The logic that determines whether a request URL is relative should swap places those two:
Describe the bug
When performed a request relative to the current origin, the logger outputs an absolute URL in the browser's console.
Environment
msw: 0.16.0
To Reproduce
Steps to reproduce the behavior:
POST /login
POST /login
request.Expected behavior
Requests performed relatively to the current origin are displayed without the origin in the browser logs:
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: