Comments (15)
Yes, the port was misplaced. Solved (I hope) with v3.2.6.
K.r,
from glpi-archimap.
I encountered some problems when I made evolve the plugin to the marketplace and GLPI version 10.
One of the consequences was a blank screen.
From my side, it is now solved in v3.2.4.
Can you check whether it solves also your problem ?
K.r,
from glpi-archimap.
I have too problem with blank screen when "Drawing pane" is clicked. GLPI version 9.5.7 and Diagrams version 3.2.4.
Uncaught TypeError: Cannot read properties of undefined (reading 'value')
at XMLHttpRequest.xhr.onreadystatechange (:15:365)
from glpi-archimap.
So I removed archimap from plugins
folder and installed 3.2.4 from marketplace. Blank screen continues but with some variants:
- If I specify the key name, as in the following screen
Then Firefox gives this error
- If I remove the key name, the Firefox error is different
from glpi-archimap.
Hi @zdenkor @moodyblue, I had the same issue: #56
Could you try in the APP_TOKEN
token configuration cleaning the key
value?
Also as I said in my issue, you have to create an API KEY
from glpi-archimap.
Please have a look to https://github.com/ericferon/glpi-archimap/wiki/How-to-install-and-set-up-the-plugin.
You have indeed to specify the APP_TOKEN entry in the plugin configuration, with an empty key and a value.
K.r,
from glpi-archimap.
The problem continues even after replacing the marketplace version by the plugins version
from glpi-archimap.
Hi @moodyblue, It could be maybe something in your apache server, can you confirm that in any *.conf in /etc/apache2/sites-enabled/
(if it's Ubuntu) don't you have something like this:
<IfModule mod_headers.c>
Header set Content-Security-Policy "script-src 'strict-dynamic' 'nonce-rAnd0m123' 'unsafe-inline' http: https:; frame-ancestors; 'self';object-src 'none';base-uri 'none'; require-trusted-types-for 'script';"
Header set X-XSS-Protection "1; mode=block"
---> Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains"
</IfModule>
from glpi-archimap.
Thanks. I've gone through all .conf files, some of them load module mod_headers.so. but there is no IfModule making any reference to mod_headers
from glpi-archimap.
The problem is linked with CORS (the Archimap plugin is using the REST API of GLPI for some operations).
Personally, I added these lines to the conf file, to enable CORS :
Header always set Access-Control-Allow-Origin "*"
on the above line, you could be more restrictive and replace * by the url of your GLPI site
Header always set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
Header always set Access-Control-Allow-Credentials "true"
Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding, App-Token, Session-Token"
and I haven't any line mentioned by jcervantes-sipecom (with or without if)
Header always append X-Frame-Options SAMEORIGIN
K.r,
from glpi-archimap.
Thanks. I will try to enable CORS. It's a non-trivial setup, my server is a QNAP NAS running a proprietary firmware called QTS (based on Linux kernel 5.10.60). There are several Apache versions ported to this platform, I need to test which one supports CORS.
from glpi-archimap.
Maybe the cause is different. My gpli runs in port 4488 and apirest is http://192.168.130.210:4488/GLPI80/apirest.php/
In previous error messages looks like archimap is trying to use port 80 instead
from glpi-archimap.
Indeed, if you use another port, this is not included in the URL calling apirest.
I added it (v3.2.5).
K.r,
from glpi-archimap.
v3.2.5 puts the port incorrectly http://192.168.130.210/GLPI80:4488/apirest.php/initSession/
It should be http://192.168.130.210:4488/GLPI80/apirest.php/initSession/
Edit: I've tried with apache listening to port 80 and it works. But I would prefer to use port 4488 instead
from glpi-archimap.
Solved with v3.2.6. Thank you very much.
from glpi-archimap.
Related Issues (20)
- Fails to install on 10.0.0 - The action you have requested is not allowed HOT 2
- 3.2.6 on GLPI 10.0.0 - Exit from drawing pane does not show GLPI menu etc HOT 2
- 3.2.7 on GLPI 10.0.0-rc3 - Drawing Pane empty : php errors HOT 3
- php fatal Error, glpi 10.0 , php 8.0 running on debian HOT 3
- Blank screen while loading/edit diagram HOT 9
- Impossible de renommer les diagrammes GLPI 10 HOT 1
- Version 3.2.8 cant add new diagrams - GLPI 10.0.2 HOT 3
- Archimap Blank page HOT 14
- Can't update from marketplace HOT 3
- "Black Screen" HOT 10
- Add a security policy HOT 1
- Ecran blanc sur "table à dessin" HOT 5
- Version is not changed HOT 1
- when installing the plugin on GLPI 10,0,3 error HOT 1
- Plugin always needs to be updated but not updated HOT 1
- Clip_art icon becoming transparent HOT 1
- No release file for version 3.2.20 HOT 1
- Issue GLPI Update 10.0.3 to 10.0.7 HOT 21
- glpi objects unavailable into diagrams HOT 4
- 3.2.20 - "Diagrams - read" gives access to read and edit plugin configuration that is not enabled 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-archimap.