I have hit a wall and any help would be greatly appreciated.
I am trying to retrieve the user token via the api. Now, when I use the snippet on the developer site and make my changes I get this
Access to XMLHttpRequest at 'http://mysite:8082/api/v1/authentication/login' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
When I change datatype to jsonp this error goes away and is replaced with this.
GET http://scpdsisensedev:8082/api/v1/authentication/login?callback=<user data> net::ERR_ABORTED 403 (Forbidden)
Researching several sites on ajax and CORS, the community here has resulted in no fruit.
Any thoughts or ideas? Thanks in advance for the help.
Please sign in to leave a comment.