'm sending two post request using the REST API: http://localhost:8111/app/rest/buildQueue but my second request fails with 403 Forbidden: Responding with 403 status code due to failed CSRF check: no "Origin" header is present and no authentication provided with the request, consider adding "Origin: http://localhost:8111" header. I'm wondering why is this happening since if i run the build in the UI and change the params ex. build1 has %version=2% and build2 has %version=3% it will run parallel with each other running on different available agents.
Here's my json request that i send
REST API:http://localhost:8111/app/rest/buildQueue JSON BODY:
{ "branchName":"master", "buildType":{ "id":"DockerBuild", "projectId":"Test" }, "properties":{ "property":[ { "name":"DOCKER_IMAGE_NAME", "value":"test-3" }, { "name":"SNAPSHOT_DEPENDENCY_VERSION", "value":"0.6" } ] } }
Am i missing a parameter to be able to run build in parallel with each other?
403 Forbidden: Responding with 403 status code due to failed CSRF check: no "Origin" header is present and no authentication provided with the request, consider adding "Origin: http://localhost:8111" header.