huashengdun / webssh

:seedling: Web based ssh client
https://webssh.huashengdun.org/
MIT License
4.57k stars 1.3k forks source link

Cross origin operation is not allowed. #82

Closed litongjava closed 5 years ago

litongjava commented 5 years ago

the log

root@566960fb49e4:/# wssh --address=0.0.0.0 --port=8888 --fbidhttp=False --xsrf=False --origin=='http://xxxx:20001/webssh/'
[I 190905 06:55:52 settings:98] WarningPolicy
[I 190905 06:55:52 main:39] Listening on 0.0.0.0:8888 (http)
[I 190905 06:55:57 web:2162] 200 GET / (183.48.23.212) 8.14ms
[I 190905 06:55:57 web:2162] 304 GET /static/css/bootstrap.min.css (183.48.23.212) 5.88ms
[I 190905 06:55:57 web:2162] 304 GET /static/css/xterm.min.css (183.48.23.212) 1.07ms
[I 190905 06:55:57 web:2162] 304 GET /static/css/fullscreen.min.css (183.48.23.212) 0.99ms
[I 190905 06:55:57 web:2162] 304 GET /static/js/jquery.min.js (183.48.23.212) 1.35ms
[I 190905 06:55:57 web:2162] 304 GET /static/js/popper.min.js (183.48.23.212) 1.01ms
[I 190905 06:55:57 web:2162] 304 GET /static/js/bootstrap.min.js (183.48.23.212) 1.19ms
[I 190905 06:55:57 web:2162] 304 GET /static/js/xterm.min.js (183.48.23.212) 1.78ms
[I 190905 06:55:57 web:2162] 304 GET /static/js/fullscreen.min.js (183.48.23.212) 0.87ms
[I 190905 06:55:57 web:2162] 304 GET /static/js/main.js (183.48.23.212) 0.94ms
[W 190905 06:55:57 web:2162] 404 GET /static/css/bootstrap.min.css.map (183.48.23.212) 1.94ms
[W 190905 06:55:57 web:2162] 404 GET /static/css/fullscreen.min.css.map (183.48.23.212) 0.97ms
[W 190905 06:55:57 web:2162] 404 GET /static/css/xterm.min.css.map (183.48.23.212) 0.96ms
[W 190905 06:55:57 web:2162] 404 GET /static/js/popper.min.js.map (183.48.23.212) 0.91ms
[W 190905 06:55:57 web:2162] 404 GET /static/js/bootstrap.min.js.map (183.48.23.212) 0.89ms
[I 190905 06:55:57 web:2162] 200 GET /static/img/favicon.png (183.48.23.212) 1.31ms
[W 190905 06:56:04 web:1667] 403 POST / (183.48.23.212): Cross origin operation is not allowed.
[I 190905 06:56:04 web:2162] 200 POST / (183.48.23.212) 2.48ms

image

mirsella commented 4 years ago

hello, i'm facing the same problem, did you find how to make it work ?