diff --git a/tracer/test/snapshots/Security.AspNetWebApi.Integrated.enableSecurity=True.__test=server.response.headers.no_cookies_url=_api_asm_injectedheader_body=null.verified.txt b/tracer/test/snapshots/Security.AspNetWebApi.Integrated.enableSecurity=True.__test=server.response.headers.no_cookies_url=_api_asm_injectedheader_body=null.verified.txt
index 622473ed6ed3..b56c0c63affa 100644
--- a/tracer/test/snapshots/Security.AspNetWebApi.Integrated.enableSecurity=True.__test=server.response.headers.no_cookies_url=_api_asm_injectedheader_body=null.verified.txt
+++ b/tracer/test/snapshots/Security.AspNetWebApi.Integrated.enableSecurity=True.__test=server.response.headers.no_cookies_url=_api_asm_injectedheader_body=null.verified.txt
@@ -24,7 +24,7 @@
TraceId: Id_1,
SpanId: Id_3,
Name: aspnet.request,
- Resource: GET /api/asm/injectedheader,
+ Resource: aspnet.request,
Service: sample,
Type: web,
Tags: {
@@ -37,7 +37,6 @@
http.request.headers.host: localhost:00000,
http.request.headers.user-agent: Mistake Not...,
http.request.headers.x-forwarded-for: 86.242.244.246,
- http.response.headers.content-type: application/json; charset=utf-8,
http.route: api/asm/injectedheader,
http.status_code: 403,
http.url: http://localhost:00000/api/asm/injectedheader,
@@ -47,7 +46,7 @@
runtime-id: Guid_1,
span.kind: server,
_dd.appsec.fp.http.endpoint: http-get-46993086--,
- _dd.appsec.fp.http.header: hdr-0100000000-3626b5f8-3-98425651,
+ _dd.appsec.fp.http.header: hdr-0000000000-3626b5f8-3-98425651,
_dd.appsec.fp.http.network: net-1-1000000000,
_dd.appsec.json: {"triggers":[{"rule":{"id":"test-dummy-rule","name":"Dummy rule to test blocking","tags":{"category":"attack_attempt","type":"security_scanner"}},"rule_matches":[{"operator":"phrase_match","operator_value":"","parameters":[{"address":"server.response.headers.no_cookies","highlight":["dummy_rule"],"key_path":["x-test"],"value":"dummy_rule"}]}]}]},
_dd.origin: appsec,
@@ -91,7 +90,7 @@
TraceId: Id_4,
SpanId: Id_6,
Name: aspnet.request,
- Resource: GET /api/asm/injectedheader,
+ Resource: aspnet.request,
Service: sample,
Type: web,
Tags: {
@@ -104,7 +103,6 @@
http.request.headers.host: localhost:00000,
http.request.headers.user-agent: Mistake Not...,
http.request.headers.x-forwarded-for: 86.242.244.246,
- http.response.headers.content-type: application/json; charset=utf-8,
http.route: api/asm/injectedheader,
http.status_code: 403,
http.url: http://localhost:00000/api/asm/injectedheader,
@@ -158,7 +156,7 @@
TraceId: Id_7,
SpanId: Id_9,
Name: aspnet.request,
- Resource: GET /api/asm/injectedheader,
+ Resource: aspnet.request,
Service: sample,
Type: web,
Tags: {
@@ -171,7 +169,6 @@
http.request.headers.host: localhost:00000,
http.request.headers.user-agent: Mistake Not...,
http.request.headers.x-forwarded-for: 86.242.244.246,
- http.response.headers.content-type: application/json; charset=utf-8,
http.route: api/asm/injectedheader,
http.status_code: 403,
http.url: http://localhost:00000/api/asm/injectedheader,
@@ -225,7 +222,7 @@
TraceId: Id_10,
SpanId: Id_12,
Name: aspnet.request,
- Resource: GET /api/asm/injectedheader,
+ Resource: aspnet.request,
Service: sample,
Type: web,
Tags: {
@@ -238,7 +235,6 @@
http.request.headers.host: localhost:00000,
http.request.headers.user-agent: Mistake Not...,
http.request.headers.x-forwarded-for: 86.242.244.246,
- http.response.headers.content-type: application/json; charset=utf-8,
http.route: api/asm/injectedheader,
http.status_code: 403,
http.url: http://localhost:00000/api/asm/injectedheader,
@@ -292,7 +288,7 @@
TraceId: Id_13,
SpanId: Id_15,
Name: aspnet.request,
- Resource: GET /api/asm/injectedheader,
+ Resource: aspnet.request,
Service: sample,
Type: web,
Tags: {
@@ -305,7 +301,6 @@
http.request.headers.host: localhost:00000,
http.request.headers.user-agent: Mistake Not...,
http.request.headers.x-forwarded-for: 86.242.244.246,
- http.response.headers.content-type: application/json; charset=utf-8,
http.route: api/asm/injectedheader,
http.status_code: 403,
http.url: http://localhost:00000/api/asm/injectedheader,
diff --git a/tracer/test/test-applications/security/aspnet/Samples.Security.WebApi/Samples.Security.WebApi.csproj b/tracer/test/test-applications/security/aspnet/Samples.Security.WebApi/Samples.Security.WebApi.csproj
index 13fbba4878a4..c134f2c79e48 100644
--- a/tracer/test/test-applications/security/aspnet/Samples.Security.WebApi/Samples.Security.WebApi.csproj
+++ b/tracer/test/test-applications/security/aspnet/Samples.Security.WebApi/Samples.Security.WebApi.csproj
@@ -165,6 +165,7 @@
+