Answer the question
In order to leave comments, you need to log in
How to make an authorization?
There is a chrome app store. As in it it is possible to implement authorization
For example there is a code.
//Авторизируюсь
$.ajax({
'url': Url + "/auth/",
'headers': {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json'
},
'method': 'post',
'dataType': 'json',
'data': {
'login': Login,
'password':Pass
}, 'success': function(d) { //... }});
$.ajax({
'url': Url + "/profile/",
'headers': {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json'
},
'method': 'post',
'dataType': 'json',
'success': function(d) { //... }
});
Answer the question
In order to leave comments, you need to log in
I don’t know how in the chrome app store, but usually it works like this:
1. log in, get session_id
2. all requests in lich. you make an office with the session_id parameter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question