feat: [PIE-7927]: added header to avoid/bypass csrf check #234
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We got a customer issue that they are getting CSRF check issues while using bitbucket on-prem connector. They suggested to add a HTTP header to requests to bypass this issue. We read more on it and found it safe to add such a header. Adding "x-atlassian-token" header helps to bypass csrf checks which are of no significance while using APIs.
For more details, refer: https://community.sonarsource.com/t/bitbucket-server-integration-csrf-xsrf-warning-in-logs/23604/4