i have a CORS issue with angular 4 and electron?

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 => {
error => {



0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

492 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you