glpi_app_grafana icon indicating copy to clipboard operation
glpi_app_grafana copied to clipboard

Cross-Origin Request Blocked: add right headers in your apache/nginx like 'App-Token' and 'Session-Token'

Open alexandre-arend opened this issue 4 years ago • 1 comments

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"

image

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

alexandre-arend avatar Aug 12 '20 06:08 alexandre-arend

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>

perlporter avatar Jan 29 '21 12:01 perlporter