Skip to content
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

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

Open
alexandre-arend opened this issue Aug 12, 2020 · 1 comment

Comments

@alexandre-arend
Copy link

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

@perlporter
Copy link

perlporter commented Jan 29, 2021

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants