Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XMLHttpRequest cannot load http://localhost/back/wp-json/jwt-auth/v1/token. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://imider.ma' is therefore not allowed access. The response had HTTP status code 500.
- $http({
- method:'post',
- url:'',
- data: {
- username: '',
- password: ''
- }
- }).then(function(results){
- console.log(results);
- })
- $http({
- method:'get',
- url:'',
- headers: { 'Authorization': 'Bearer <myTokenId>' }
- }).then(function(results){
- console.log(results);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement