refactor(http): Add explicit mention of the dangerosity of JSONP on the API entries#69168
Open
JeanMeche wants to merge 1 commit into
Open
refactor(http): Add explicit mention of the dangerosity of JSONP on the API entries#69168JeanMeche wants to merge 1 commit into
JeanMeche wants to merge 1 commit into
Conversation
Contributor
|
We can also add a warning to the documentation in the HTTP Client section under JSONP. |
72670b9 to
0d4bd65
Compare
0d4bd65 to
3ad0371
Compare
SkyZeroZx
reviewed
Jun 4, 2026
3ad0371 to
49d4958
Compare
49d4958 to
54330ad
Compare
|
Deployed adev-preview for 0cf0001 to: https://ng-dev-previews-fw--pr-angular-angular-69168-adev-prev-dzewvbo7.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
54330ad to
601a700
Compare
e7d110b to
ec24ad1
Compare
…he API entries In addition of deprecating JSONP support (angular#69116) we will remame both the provider function and the module to explicit that JSONP can be an attack vector and should be used with caution While this is a breaking change, we consider this a hardening change. Also our investigation showed that this API is not widely used. BREAKING CHANGE: JSONP is considered a liability and its usage in not recommended. The API will be removed in v23. Please transition to CORS-enabled APIs instead.
ec24ad1 to
0cf0001
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In addition of deprecating JSONP support (#69116) we will remame both the provider function and the module to explicit that JSONP can be an attack vector and should be used with caution
While this is a breaking change, we consider this a hardening change. Also our investigation showed that this API is not widely used.
BREAKING CHANGE: JSONP is considered a liability and its usage in not recommended. The API will be removed in v23. Please transition to CORS-enabled APIs instead.