Files
Alan Agius 0659d11c85 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.
2025-12-03 12:19:43 +01:00

37 lines
770 B
Python

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