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

403 : Forbidden when export a diagram #62

Open
jacks808 opened this issue May 27, 2020 · 3 comments
Open

403 : Forbidden when export a diagram #62

jacks808 opened this issue May 27, 2020 · 3 comments

Comments

@jacks808
Copy link

I got a 403 error when I am trying to export a diagram to png file

The first request curl was copied from chrome:


curl 'http://localhost:8888/export' \
  -H 'Connection: keep-alive' \
  -H 'Cache-Control: max-age=0' \
  -H 'DNT: 1' \
  -H 'Upgrade-Insecure-Requests: 1' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' \
  -H 'Origin: http://localhost:8888' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Sec-Fetch-Mode: navigate' \
  -H 'Sec-Fetch-User: ?1' \
  -H 'Sec-Fetch-Dest: document' \
  -H 'Referer: http://localhost:8888/lab' \
  -H 'Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7' \
  -H 'Cookie: _xsrf=2|48ea477d|7a175aefda3c783b7b6deadb94499252|1589959578; username-localhost-8888="2|1:0|10:1590583362|23:username-localhost-8888|44:MjEyOGJhNmQyYWYxNDgxNTg3NjZiZGZiOGRmZDNjYjM=|eb7077058e78efb32d875dd7b0607e6e60c2e9a4f635c088ab94a97a85c1b3e9"' \
  --data 'format=png&filename=Drawing1.png&bg=%23ffffff&w=121&h=61&xml=%253Coutput%253E%253Cfontfamily%2520family%253D%2522Arial%252CHelvetica%2522%252F%253E%253Cfontsize%2520size%253D%252211%2522%252F%253E%253Cshadowcolor%2520color%253D%2522%2523000000%2522%252F%253E%253Cshadowalpha%2520alpha%253D%25220.25%2522%252F%253E%253Cshadowoffset%2520dx%253D%25222%2522%2520dy%253D%25223%2522%252F%253E%253Ctranslate%2520dx%253D%2522-754%2522%2520dy%253D%2522-1071%2522%252F%253E%253Cscale%2520scale%253D%25221%2522%252F%253E%253Csave%252F%253E%253Cscale%2520scale%253D%25221%2522%252F%253E%253Cfillcolor%2520color%253D%2522%2523ffffff%2522%252F%253E%253Cstrokecolor%2520color%253D%2522%2523000000%2522%252F%253E%253Croundrect%2520x%253D%2522754%2522%2520y%253D%25221071%2522%2520w%253D%2522120%2522%2520h%253D%252260%2522%2520dx%253D%25229%2522%2520dy%253D%25229%2522%252F%253E%253Cfillstroke%252F%253E%253Crestore%252F%253E%253C%252Foutput%253E' \
  --compressed

And response looks like:
image

@Fonna
Copy link

Fonna commented Nov 19, 2020

+1 I have the same error. Any Solution?

@diandian11
Copy link

the same issuse. any solution ?

@SamtreePython
Copy link

Same error. Can be exported as SVG under the File of Jupiter.

bollwyvl added a commit to bollwyvl/jupyterlab-drawio that referenced this issue Jul 30, 2021
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

4 participants