Rest Api GET request 403

Blake Pitts July 16, 2018

I keep getting a 403 error in Chrome. The request works in postman. 

Here is my call:

 

getSpaces = async () => { const response = await axios({ method: 'get', url: 'https://myurl.atlassian.net/wiki/rest/api/search?cql=space', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Basic myTokenHere'} }) console.log(response) }

0 answers

Suggest an answer

Log in or Sign up to answer