Improved info about API authentication in readme.

This commit is contained in:
Andrey Savchenko committed 2018-12-26 17:57:56 +02:00
1 parent eeb8de17d0
commit 960efd86ba
1 file changed
+6 -2
+6 -2
View File
@@ -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.
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.
![Laps v3 dev tools screenshot](https://i.imgur.com/hkl1Qk9.png)
### 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
| [Composer](https://getcomposer.org/) (recommended) | Release archive |