Skip to content

Commit ef3c3cc

Browse files
authored
feat: [PIE-7927]: added header to avoid/bypass csrf check (#234)
1 parent 5f3c262 commit ef3c3cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scm/driver/stash/stash.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ func (c *wrapper) do(ctx context.Context, method, path string, in, out interface
6969
Method: method,
7070
Path: path,
7171
Header: map[string][]string{
72-
"Accept": {"application/json"},
72+
"Accept": {"application/json"},
73+
"x-atlassian-token": {"no-token"},
7374
},
7475
}
7576
// if we are posting or putting data, we need to

0 commit comments

Comments
 (0)