Hello All,
I am trying to authenticate using the below.
http://docs.grafana.org/v5.0/http_api/auth/
I tried using Postman to check the authentication and it is working. When I try to use the ajax request with jquery it always throws error for OPTIONS call.
Request Method: OPTIONS
Status Code: 404 Not Found
How to solve this issue?
Below is the network tab details for the request
Request URL: http://grafana.staged-by-discourse.com/api/dashboards
Request Method: OPTIONS
Status Code: 404 Not Found
Remote Address: [::1]:3000
Referrer Policy: no-referrer-when-downgrade
Content-Length: 23
Content-Type: application/json; charset=UTF-8
Date: Tue, 15 May 2018 04:53:37 GMT
Set-Cookie: grafana_sess=c7306fade6fe45ff; Path=/; HttpOnly
Accept: /
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Access-Control-Request-Headers: authorization,cache-control
Access-Control-Request-Method: GET
Cache-Control: no-cache
Connection: keep-alive
Host: community.grafana.com
Origin: http://localhost
Pragma: no-cache