Skip to content
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

withCache can not add Authorization header #33

Closed
1 of 8 tasks
sysmat opened this issue Apr 12, 2021 · 1 comment
Closed
1 of 8 tasks

withCache can not add Authorization header #33

sysmat opened this issue Apr 12, 2021 · 1 comment

Comments

@sysmat
Copy link

sysmat commented Apr 12, 2021

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

Can not add HTTP header with withCache

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

export interface HttpOptions {
    headers: HttpHeaders;
    params?: HttpParams;
}

I think this kind of interface would be better to easy adding headers or parms with withCache function

Environment

Angular version: 11.2.9

Browser:

  • Chrome (desktop) version XX
  • Chrome (Android) version XX
  • Chrome (iOS) version XX
  • Firefox version XX
  • Safari (desktop) version XX
  • Safari (iOS) version XX
  • IE version XX
  • Edge version XX

For Tooling issues:

  • Node version: 14
  • Platform: Windows 10

Others:

@NetanelBasal
Copy link
Member

#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants