1

I want to update the parameter value in the Teamcity build template.

I tried the following URL:

[PUT] http://xxx.xxx.x.xxx:8080/app/rest/buildTypes/{BuildTypeName}/parameters/{ParameterName}/{ParameterValue}

By trying this I'm facing the following error

403 Forbidden: Responding with 403 status code due to failed CSRF check: authenticated PUT request is made, but neither tc-csrf-token parameter nor X-TC-CSRF-Token header are provided.

For a temporary workaround, you can set internal property teamcity.csrf.paranoid=false and provide valid Origin=http://xxx.xxx.x.xxx:8080 header with your request

Please suggest how update the parameter value in Teamcity

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Chandramouli
  • 544
  • 6
  • 18

1 Answers1

0

Sending the "Origin=http://xxx.xxx.x.xxx:8080" in the header solved the issue

Chandramouli
  • 544
  • 6
  • 18