angular/packages/common/http/test
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
..
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
client_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
context_spec.ts feat(http): add has() method to HttpContext class (#43887) 2021-11-04 18:52:18 +00:00
headers_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
jsonp_mock.ts refactor(http): change <script>'s ownerDocument in jsonp teardown (#36807) 2022-02-24 17:24:33 +00:00
jsonp_spec.ts fix(http): Throw error when headers are supplied in JSONP request (#45210) 2022-03-28 09:38:19 -07:00
module_spec.ts refactor(common): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
params_spec.ts refactor(common): change encoding function in httpparams for better performances and coding standards (#42998) 2021-08-16 10:44:52 -07:00
request_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
response_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
xhr_mock.ts fix(common): incorrect error type for XHR errors in TestRequest (#36082) 2021-11-19 21:26:52 +00:00
xhr_spec.ts perf(http): remove IE special status handling (#44354) 2022-02-04 11:45:15 -08:00
xsrf_spec.ts refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00