angular/packages/common/http/test/BUILD.bazel
Alan Agius 20474d3f0f fix(http): enable XSRF protection for same-origin absolute URLs
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)
2025-12-03 12:19:46 +01:00

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",
],
)