Skip to content

Not able to PUT to ES #20

@JeroenVdb

Description

@JeroenVdb

I installed Grafana and ES. Both in a Docker.

When I try to save a Grafana dashboard I get this error in Chrome:


XMLHttpRequest cannot load http://192.168.59.103:9200/grafana-dash/dashboard/grafana. Method PUT is not allowed by Access-Control-Allow-Methods.

I added these configs to my elasticsearch.yml

http.cors.allow-origin: "*"
http.cors.allow-methods: "OPTIONS, HEAD, GET, POST, PUT, DELETE"

Someone has any idea what I'm doing wrong? My apache where Grafana is running should also have correct headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions