mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously, the XSRF interceptor only added the XSRF token to requests with relative URLs.
This commit updates the interceptor to also add the token to requests with absolute URLs, provided they match the current origin.
(cherry picked from commit 0659d11c85)
36 lines
770 B
Text
36 lines
770 B
Text
load("//tools:defaults.bzl", "angular_jasmine_test", "ng_web_test_suite", "ts_project")
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
),
|
|
# Visible to //:saucelabs_unit_tests_poc target
|
|
visibility = ["//:__pkg__"],
|
|
deps = [
|
|
"//:node_modules/rxjs",
|
|
"//packages:types",
|
|
"//packages/common",
|
|
"//packages/common/http",
|
|
"//packages/common/http/testing",
|
|
"//packages/common/testing",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/private/testing",
|
|
],
|
|
)
|
|
|
|
angular_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib",
|
|
],
|
|
)
|
|
|
|
ng_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|