1

Has anyone got this error? There's a workaround in https:// github. com/obfuscurity/descartes editing the http.conf (apache webserver) and adding the following:

Header set Access-Control-Allow-Origin "ip"
Header set Access-Control-Allow-Methods "GET, OPTIONS"
Header set Access-Control-Allow-Headers "origin, authorization, accept"
Header set Access-Control-Allow-Credentials true

This method works perfectly but it affects any connection/request made to our webserver.

As I coud see in graphite, instead of editing the http.conf, we could modify the /opt/graphite/ webapp/graphite/local_settings.py and add

ALLOWED_HOSTS = "your_descartes_url. domain".

But this last doesn't work for me. So, do you know any other graphite side config to try out?

erbdex
  • 1,899
  • 3
  • 22
  • 40
marianogg9
  • 184
  • 1
  • 13
  • 1
    Nevermind, I've added: Header set Access-Control-Allow-Origin "http:// descartes. domain" Header set Access-Control-Allow-Methods "GET, OPTIONS" Header set Access-Control-Allow-Headers "origin, authorization, accept" Header set Access-Control-Allow-Credentials true in my graphite vhost, and everything is working now. Hope this helps someone :) – marianogg9 Nov 21 '13 at 18:34

1 Answers1

1

The issue, as you figured out, is at the web-server level, and the request doesn't even reach the webapp.

erbdex
  • 1,899
  • 3
  • 22
  • 40