Forums

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

I’m making jira API calls in javascript and I’m getting CORS errors due to origin null.

Trey Woods
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 7, 2020

I’m making jira API calls in javascript  and  I’m getting CORS errors due to origin null.I added below filters to web.xml but it’s not working.

 

<filter>

  <filter-name>CorsFilter</filter-name>

  <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>

</filter>

<filter-mapping>

  <filter-name>CorsFilter</filter-name>

  <url-pattern>/*</url-pattern>

</filter-mapping>

 

Here is error :

Access to XMLHttpRequest at 'http://Host:8080/ url' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events