add disclaimer for ajaxSetup
This commit is contained in:
Родитель
676750d8e3
Коммит
d4021a15d6
|
@ -179,6 +179,8 @@ Please note that we're using the JWT that we saved after login on Step [#4](#5).
|
|||
|
||||
<% } %>
|
||||
|
||||
> The settings specified in `ajaxSetup` will affect all calls to $.ajax or Ajax-based derivatives such as $.get(). This can cause undesirable behavior since other callers (for example, plugins) may be expecting the normal default settings. For that reason is recommend against using this API. Instead, set the options explicitly in the call or define a simple plugin to do so ([more details](http://api.jquery.com/jQuery.ajaxSetup/)).
|
||||
|
||||
### 6. Showing user information
|
||||
|
||||
We already have the `userProfile` variable with the user information. Now, we can set that information to a span:
|
||||
|
|
|
@ -29,4 +29,6 @@ This sample code sends the JSON Web Token on each call:
|
|||
|
||||
> Setting the cookie on the client-side using this method requires [jQuery.Cookie](https://github.com/carhartl/jquery-cookie).
|
||||
|
||||
> The settings specified in `ajaxSetup` will affect all calls to $.ajax or Ajax-based derivatives such as $.get(). This can cause undesirable behavior since other callers (for example, plugins) may be expecting the normal default settings. For that reason is recommend against using this API. Instead, set the options explicitly in the call or define a simple plugin to do so ([more details](http://api.jquery.com/jQuery.ajaxSetup/)).
|
||||
|
||||
To validate the token on the server side, we have tutorials for several platforms and languages to get you up and running as quickly as possible. Look at the Web APIs section on the sidebar.
|
Загрузка…
Ссылка в новой задаче