glpi_app_grafana
glpi_app_grafana copied to clipboard
Cross-Origin Request Blocked: add right headers in your apache/nginx like 'App-Token' and 'Session-Token'
Please helpme solution problem ?
iam add lines in .httpaccess, but not resolved.
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"
My Configuration
Token ability in GLPI setup Tokens generate in user and app GLPi verion 5.1 Ubuntu Server 20.04 LTS Grafana 7.1
tnks for help me
The way that worked with me was to add in my httpd.conf:
<IfModule headers_module>
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 "Origin,Content-Type,Accept,Authorization,App-Token,Session-Token"
</IfModule>