angular/packages/common/http/src
Maddie Klein d43c0e973f fix(http): Throw error when headers are supplied in JSONP request (#45210)
JSONP does not support headers being set on requests. This
enables JSONP to throw an error when headers are supplied
in the request to prevent attempts to set them.

BREAKING CHANGE: JSONP will throw an error when headers are set on a reques

JSONP does not support headers being set on requests. Before when
a request was sent to a JSONP backend that had headers set the headers
were ignored. The JSONP backend will now throw an error if it
receives a request that has any headers set. Any uses of JSONP
on requests with headers set will need to remove the headers
to avoid the error.

Closes #9141

PR Close #45210
2022-03-28 09:38:19 -07:00
..
backend.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
client.ts docs(common): correct typos in jsdoc of http client (#43352) 2021-09-07 18:45:16 +00:00
context.ts feat(http): add has() method to HttpContext class (#43887) 2021-11-04 18:52:18 +00:00
headers.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
interceptor.ts docs(http): get rid of not needed space at the end of the sentence (#43528) 2021-09-22 16:18:08 +00:00
jsonp.ts fix(http): Throw error when headers are supplied in JSONP request (#45210) 2022-03-28 09:38:19 -07:00
module.ts fix(platform-browser): configure XhrFactory to use BrowserXhr (#41313) 2021-03-29 15:14:16 -07:00
params.ts refactor(common): change encoding function in httpparams for better performances and coding standards (#42998) 2021-08-16 10:44:52 -07:00
request.ts feat(common): add URLSearchParams to request body (#37852) 2021-05-07 10:45:02 -04:00
response.ts refactor(common): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
xhr.ts perf(http): remove IE special status handling (#44354) 2022-02-04 11:45:15 -08:00
xsrf.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00