Comments (8)
You put this lines into or into ?
from glpi_app_grafana.
I tried:
<Directory /var/www>
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"
but I got always the same error
from glpi_app_grafana.
/etc/apache2/sites-enabled/glpi.conf
<VirtualHost :80>
......
<Directory /var/www/glpi>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
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,$
....
a2enmod headers -> Module headers already enabled
systemctl restart apache2
from glpi_app_grafana.
On grafana when you test, check the developper console (F12) to see the real error on HTTP requests
from glpi_app_grafana.
Thanks for the fast answer!
from glpi_app_grafana.
Ok so it's confirmed, it's CORS problem.
The error say you use https (443) but in your apache config you have so I think you don't have put the CORS configuration in the right VirtualHost/Directory
from glpi_app_grafana.
Thanks.
I put it in glpi.conf as written above.
glpi.conf is correctly linked from /sites-available
Syntax is OK
Could be a problem due by 3000 port?
There are differents apache config file to setup for https unlike http?
from glpi_app_grafana.
I don't know, depend of the package of Apache2
from glpi_app_grafana.
Related Issues (20)
- GLPI API Error Response: Bad Request HOT 2
- Failed to fetch Instantiating with Grafana 8 HOT 4
- incorrect values when using url HOT 11
- Cannot configure api on grafana HOT 1
- erro ao tentar instalar HOT 1
- Can't use mixed datasources to merge data from two glpi instance
- ERROR_SESSION_TOKEN_MISSING
- Not Working with Grafana v8.3.3 and GLPI 9.5.7 HOT 7
- Bad Request Grafana 8.5.1 GLPI 9.5.7 HOT 2
- Plugin is not working/page stops responding
- Not Working with Grafana v9.1.7 and GLPI 10.0.3 HOT 30
- Options manquantes
- Options manquantes HOT 1
- Invalid plugin signature
- Datasource not found HOT 2
- Entities
- Query error - failed to fetch
- Angular is deprecated - please migrate to React
- Working with GLPI 10.0.15 ? HOT 1
- GLPI DataSource on Kubernetes Grafana HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glpi_app_grafana.