Open pi3rrot opened 2 months ago
Which is bad request. How, precisely, is the requested formed?
Sorry my miss, this is it. (values are fakes for the paste)
https://draw.mydomain.fr/gitlab?code=ohqu9joba6yeeki6thee3diet9kie6eiwae3chuz8Ahziathaew6Oosheebeeyij&state=cId%3Dohqu9joba6yeeki6thee3diet9kie6eiwae3chuz8Ahziathaew6Oosheebeeyij%26domain%3Ddraw.mydomain.fr%26token%3Dohqu9joba6yeeki6thee3diet9kie6eiwa
After clicking 'Authorize' in GitLab, the page redirects (302) to the draw.io URL, but the same error occurs.
same issue to me
your PreConfig.js header is not right
you could see some like: (function() { try { var s = document.createElement('meta'); s.setAttribute('content', 'src \'self\'; script-src \'self\' https://code.jquery.com \'unsafe-inline\'; connect-src \'self\' https://你的gitlab; img-src data:; media-src data:; font-src * about:; style-src \'self\' \'unsafe-inline\' https://fonts.googleapis.com; frame-src \'self\' https://你的gitlab;'); s.setAttribute('http-equiv', 'Content-Security-Policy'); var t = document.getElementsByTagName('meta')[0]; t.parentNode.insertBefore(s, t); } catch (e) {} // ignore })();
it's about CSP, you maybe use a wrong header.
you could use my header, it's ok
DRAWIO_CSP_HEADER=default-src \'self\'; script-src \'self\' https://code.jquery.com \'unsafe-inline\'; connect-src \'self\' http://MY_SERVER_URL; img-src data:; media-src data:; font-src * about:; style-src \'self\' \'unsafe-inline\' https://fonts.googleapis.com; frame-src \'self\' http://MY_SERVER_URL;
Hello,
I'm using the last version in date of Draw.io
v24.7.5
with Gitlab17.2.2-ce.0
from omnibus installer on Debian 12. I can't grant access to Draw.io in my Gitlab instance.I have read the manual and set the values like https://github.com/jgraph/docker-drawio/blob/dev/self-contained/README.md#gitlab
I replace the value
https://gitlab.com/oauth/token
without oauth/token because it redirect likeoauth/token/oauth/authentication
It's under a Nginx reverse-proxy, with CORS values like
Nginx reverse-proxy :
js/PreConfig.js file :
It give me an error
HTTP 400
when I try to grant access.