Prelude Error: Origin check failed
Added by Денис Хижниченко over 3 years ago
Hello, I have an error when clicking some of the interface buttons, for example, saving in the user profile (without changes):
Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/prewikka/main.py", line 301, in process response = self._process_static(webreq) or self._process_dynamic(webreq) File "/usr/lib/python3.6/site-packages/prewikka/main.py", line 285, in _process_dynamic raise autherr or err File "/usr/lib/python3.6/site-packages/prewikka/main.py", line 283, in _process_dynamic view_object = env.viewmanager.load_view(webreq, env.request.user) File "/usr/lib/python3.6/site-packages/prewikka/view.py", line 583, in load_view csrf.process(request) File "/usr/lib/python3.6/site-packages/prewikka/csrf.py", line 110, in process raise Exception("Origin check failed") Exception: Origin check failed
p.s. Centos 8, prewikka-5.2.0-4.el8
Replies (4)
RE: Prelude Error: Origin check failed - Added by Antoine LUONG over 3 years ago
Hello,
Which web server are you using for launching Prewikka, and how is it configured?
Regards
RE: Prelude Error: Origin check failed - Added by Денис Хижниченко over 3 years ago
Hello, I made a server with the command:
ExecStart=prewikka-httpd -p 8111 -a 127.0.0.1. В nginx
And Nginx configured:
location / { proxy_pass http://127.0.0.1:8111; }
RE: Prelude Error: Origin check failed - Added by Antoine LUONG over 3 years ago
You could try with this configuration:
location / { proxy_pass http://127.0.0.1:8111; proxy_set_header origin http://127.0.0.1:8111; }
RE: Prelude Error: Origin check failed - Added by Денис Хижниченко over 3 years ago
Thank you, it helped.