Improved info about API authentication in readme.
This commit is contained in:
1 parent
eeb8de17d0
commit
960efd86ba
1 file changed
+6
-2
@@ -28,10 +28,14 @@ Laps automatically tracks many events, such as:
|
|||||||
|
|
||||||
For Ajax and REST API — Laps outputs performance information by Server Timing API, for use with clients such as Chrome Dev Tools.
|
For Ajax and REST API — Laps outputs performance information by Server Timing API, for use with clients such as Chrome Dev Tools.
|
||||||
|
|
||||||
Note that REST API requests need nonce, to be fully authenticated with cookies, to show the information. Alternately `laps_can_see` check can be filtered.
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### API authentication
|
||||||
|
|
||||||
|
API requests need to be authenticated as admin for performance data to be sent. For Ajax requests cookies are sufficient. REST API requests also [need nonce passed](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#cookie-authentication).
|
||||||
|
|
||||||
|
`laps_can_see` check can be filtered to relax required permissions on the plugin’s side.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
| [Composer](https://getcomposer.org/) (recommended) | Release archive |
|
| [Composer](https://getcomposer.org/) (recommended) | Release archive |
|
||||||
|
|||||||
Reference in new issue
Block a user