It is more convenient and uniform to just use something like
instead of sending an HTTP request to the /ping endpoint, as many users also want to validate authentication with this request.
Cons /ping endpoint:
- does not validate credentials
- does not implement CORS