Skip to content

feat(http): add warning when withCredentials overrides explicit crede… - #62383

Closed
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:http-credentials-warning-message
Closed

SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:http-credentials-warning-message

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

Since merged PR : #62354

Add warning for withCredentials override

What changed:

  • Added dev warning when both withCredentials: true and credentials are set
  • New error code: WITH_CREDENTIALS_OVERRIDES_EXPLICIT_CREDENTIALS
  • Warning only shows in development mode

@pullapprove
pullapprove Bot requested a review from alxhub June 30, 2025 19:03
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: common/http Issues related to HTTP and HTTP Client labels Jun 30, 2025
@ngbot ngbot Bot added this to the Backlog milestone Jun 30, 2025

@thePunderWoman thePunderWoman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thanks for all these HttpClient improvements!

reviewed-for: fw-general, public-api

@pullapprove
pullapprove Bot requested review from AndrewKushnir and atscott July 1, 2025 07:18
@thePunderWoman thePunderWoman added the target: minor This PR is targeted for the next minor release label Jul 1, 2025
…ntials

This will prevent confusion and accidentally overriding of credentials.
@thePunderWoman
thePunderWoman force-pushed the http-credentials-warning-message branch from 75fddee to e9ba323 Compare July 1, 2025 07:22

@crisbeto crisbeto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-for: public-api

@thePunderWoman thePunderWoman added the action: merge The PR is ready for merge by the caretaker label Jul 1, 2025
@thePunderWoman

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit cfbbb08.

The changes were merged into the following branches: main

@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Aug 1, 2025
@SkyZeroZx
SkyZeroZx deleted the http-credentials-warning-message branch December 17, 2025 21:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: common/http Issues related to HTTP and HTTP Client detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants