Hey community,
I have issues with my SSO authentication for my eve online web-app.
I am using axios to make a post request, so I can trade the callbackCode to a accessToken.
This is my code:
this.axios({
method: ‘post’,
url: ‘https://login.eveonline.com/oauth/token’,
data: {
headers: {
‘Content-Type’: ‘application/x-www-form-urlencoded’,
‘Authorization’: ‘Basic [Base64code]’,
‘crossDomain’: true
},
body: “grant_type=authorization_code&code=”+callbackCode
}
}).then(response => {
this.postBody = response;
})
callbackCode is the code that is extracted from the URL, it gets me the correct code, so theres not the problem.
When I do the request using a restlessClient extension I do get a propper response. But using this I dont. The error is the following:
-OPTIONS https://login.eveonline.com/oauth/token 404 (Not Found)
-Failed to load login.eveonline .com/oauth/token: Response to preflight request doesn’t
pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the
requested resource. Origin [My URL] is therefore not allowed access. The
response had HTTP status code 404.
-Uncaught (in promise) Error: Network Error
at t.exports (createError.js:16)
at XMLHttpRequest.p.onerror (xhr.js:87)
Can anyone help me with this?
Sincerly,
Jan