-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLPI 9.4.3 and app for Grafana 1.3.0 #53
Comments
You put this lines into or into ? |
I tried: but I got always the same error |
/etc/apache2/sites-enabled/glpi.conf <VirtualHost :80> a2enmod headers -> Module headers already enabled |
On grafana when you test, check the developper console (F12) to see the real error on HTTP requests |
Ok so it's confirmed, it's CORS problem. |
Thanks. Could be a problem due by 3000 port? |
I don't know, depend of the package of Apache2 |
Hi folks,
I have tried to enable cors on a apache without success.
I tried in .htaccess, in glpi.conf or 000-default.conf.
Wich is the correct marker to incapsulate
Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" Header set Access-Control-Allow-Credentials true Header set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding, App-Token, Session-Token"
and in wich file?
I got this:
Access to XMLHttpRequest at 'https://glpi###############initSession' (redirected from 'http://#####/api/datasources/proxy/6/initSession') from origin 'http://#######' has been blocked by CORS policy: Request header field x-ds-authorization is not allowed by Access-Control-Allow-Headers in preflight response.
The text was updated successfully, but these errors were encountered: