Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable Xray API for JIRA Server?

Martha Sanchez April 1, 2022

Hi, everyone! 

I tried to make a get request, but I have a following issue;

Request:  http://localhost:xxxx//rest/raven/1.0/api/testexec/xxxx/test

3.PNG

My WebApp works fine with Jira Rest APIs but not with  Xray Rest APIs. 

Should I enable an option in JIRA server for Xray?

API token only applies for Jira cloud 

1 answer

0 votes
Thiago Masutti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2022

Hi @Martha Sanchez 
I hope you are doing well.

That's the browser blocking the request to Jira because of CORS.

Jira doesn't send the Access-Control-Allow-Origin response header (see JRASERVER-65362 ) so you might not be able to call that API from your other web application.

You may want to test if that's the issue by disabling CORS on Chrome and trying the API.
If that resolves the issue you may need to enable the CORS filter on the Tomcat level.

I hope that helps.

Kind regards,
Thiago Masutti

Suggest an answer

Log in or Sign up to answer