-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Bearer token included with includeBearerTokenInterceptor #610
Comments
Hi @relivvius, If you’re unsure, I recommend reviewing the |
Hi @mauriciovigolo thanks for your answer! Here is the localhostCondition that I use:
|
@mauriciovigolo could it be the provideStore()? The service hitting the http server is injected into a function effect
|
I am having same issue. Authentication Bearer token not added to request. |
Having the same issue. |
I think @FloppyNotFound is right |
If I put a breakpoint at the function @FloppyNotFound highlights above, for me the url is only the path. So if I navigate to For my usecase this is fine, I can rewrite the regex, but is this the expected functionality ? |
@m3astwood that's exactly what I meant by "relative/absolute URL issue" ;) for me, the url is "graphql" instead of "http://localhost:4200/graphql" (as visible in the right block of the screenshot) |
@FloppyNotFound ah yeah my bad missed that ! 🤦♂️ |
Thanks a lot @FloppyNotFound, with the mentioned urlPattern works for me also |
Versions.
19.0.2
Repro steps.
Create a configuration that looks like:
The log given by the failure.
There is no bearer token included in the api call
GET /api/workspace/findAll HTTP/1.1
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-GB,en
Connection: keep-alive
DNT: 1
Host: localhost:4200
Referer: http://localhost:4200/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Sec-GPC: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
sec-ch-ua: "Brave";v="131", "Chromium";v="131", "Not_A Brand";v="24"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"
Desired functionality.
The Bearer token should be included in urls starting with http://localhost:4200
The text was updated successfully, but these errors were encountered: