working on building desktop app using angular 4 and electron and try to get authentication token for jira but i am getting back status code: 500, any help to get around this issue. i believe it is cors issue :
here is request headers:
- :authority:somecompany.atlassian.net
- :method:POST
- :path:/rest/auth/1/session
- :scheme:https
- accept:application/json, text/plain, */*
- accept-encoding:gzip, deflate
- accept-language:en-US
- content-length:51
- content-type:application/json
- origin:file://
return message from server:
{"message":"Expected authority at index 7: file://","status-code":500,"stack-trace":
"java.lang.IllegalArgumentException: Expected authority at index 7: file:// ...etc this.http.post('https://somecompany.atlassian.net/rest/auth/1/session' , body)
.subscribe(d => {
console.log(d);
this.router.navigate(['/home']);
},
error => {
console.log('errororororororor');
console.log(error);
});
}