[BAMBOO] Unable to add requirement to build plan
Asked by Arnault DLB:

Hello,

<br />

I'm facing an error when trying to add requirement to my build plan.  
When I try to add requirement, it just infinite load, and in my console I see this error :

![Screenshot_18.png](/t5/image/serverpage/image-id/54006i80136DC9663757BB/image-size/large?v=v2&px=999 "Screenshot_18.png")

When I try to reach this link directly, I have no issue, it just print a empty array in text plain.

<br />

I also look in my bamboo log and see this when I add requirements.

```

[XsrfResourceFilter] Additional XSRF checks failed for request: http://BAMBOO_URL/rest/api/latest/config/job/TEST-PYT-JOB1/requirement , origin: BAMBOO_URL , referrer: BAMBOO_URL/build/admin/edit/defaultBuildRequirement.action , credentials in request: true , allowed via CORS: false
```

<br />

I'm also facing this problem when I try to dedicate agent to a specific build.  
I specify that my bamboo installation is dockerize and I'm using remote dockerize agent.

<br />

Can someone help me out ?


Answers:
author: Victor Debone
body: Hello [@Arnault DLB](/t5/user/viewprofilepage/user-id/2323053) welcome to the community :)

Before we can go a bit further, I have some questions:

* What version of Bamboo are you currently using?
* Do you use integration with Crowd or other User Directory?
* Are you logged-in with a new/recently created user?

Victor

comments: author: Arnault DLB
body: Hello [@Victor Debone](/t5/user/viewprofilepage/user-id/1892075)

Thank you for your quick answer !

Regarding your questions:

* I use Bamboo Server 6.8.0
* Users are integrated with Crowd from our Jira Server
* I'm logged-in with the Admin User created during the installation

Arnault


author: Victor Debone
body: Ok! Does this Admin User contains an email in Crowd?


author: Arnault DLB
body: We use Jira as a Crowd server and the admin user has an email but I don't really understand your request...


author: Arnault DLB
body: Hello [@Victor Debone](/t5/user/viewprofilepage/user-id/1892075) ,

So would you have any idea how to solve my problem?

Thank you in advance!


author: Victor Debone
body: Hello [@Arnault DLB](/t5/user/viewprofilepage/user-id/2323053)

My first request was to remove doubts that this might be related to [this bug](https://jira.atlassian.com/browse/BAM-20354) which is fixed for 6.9.0.

I haven't managed to run any tests on this yet, but may I ask if you are using any proxy in front of Bamboo?


author: Arnault DLB
body: Hello [@Victor Debone](/t5/user/viewprofilepage/user-id/1892075)

This bug is only occur on Oracle Database, we are using Postgres.  
Only Nginx is running as a reverse-proxy in front of Bamboo


author: Victor Debone
body: The reverse-proxy rings a bell, this is the CORS filter blocking requests from a different domain.

You need to configure Tomcat to handle these connections, you can find more details [here](https://jira.atlassian.com/browse/BAM-18063)

Please let me know if that helped you, and if yes, I will bring this to our documentation.

Victor


author: Arnault DLB
body: Hello [@Victor Debone](/t5/user/viewprofilepage/user-id/1892075)

Indeed, it was Tomcat that was incorrectly setup.

Thank you so much for your help!

Arnault DLB


author: Victor Debone
body: Glad to help! :)


author: Daniel Saravia
body: Thank you [@Victor Debone](/t5/user/viewprofilepage/user-id/1892075) it helped me on my 8.1.3 installation.