Skip to content

Commit 042c0f0

Browse files
tdonohuegithub-actions[bot]
authored andcommitted
Specify user agent to avoid being detected as a "bot" by backend
(cherry picked from commit 72cda41)
1 parent f3f87dc commit 042c0f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cypress/support/commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ function generateViewEvent(uuid: string, dsoType: string): void {
177177
[XSRF_REQUEST_HEADER] : csrfToken,
178178
// use a known public IP address to avoid being seen as a "bot"
179179
'X-Forwarded-For': '1.1.1.1',
180+
// Use a user-agent of a Firefox browser on Windows. This again avoids being seen as a "bot"
181+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0',
180182
},
181183
//form: true, // indicates the body should be form urlencoded
182184
body: { targetId: uuid, targetType: dsoType },

0 commit comments

Comments
 (0)