Hello community , i m new here
i have a React app , i m trying to use jira rest api but i m facing the cross origin issue
Axios.get("https://mydomaine-name.atlassian.net/jira-rest-api ",{
headers: {
"Access-Control-Allow-Origin": "*",
'Content-Type': 'application/json',
},
auth:{
username: "MyuserName",
password: "MyAPI-Token"
}
}).then(resp=>{
console.log(resp)
})
Access to XMLHttpRequest at 'https://mydomaine-name.atlassian.net/jira-rest-api' has been blocked by CORS policy
i tried may options , and i changed from Axios to fetch but always the same issue
( its just a simple client app wich mean i don’t have a back-end )
Any help please !