BenoitAnastay / paperless-home-assistant-addon

Paperless Home Assistant Addon
MIT License
35 stars 7 forks source link

HTTP Headers removed, causing CSRF faillure #169

Closed treffNIX9815 closed 2 months ago

treffNIX9815 commented 2 months ago

Hello, thx 4 the great work with this addon. I Love it

Since the last Update to 2.1.0 i get following error after login image i access paperless with ip adress at local network. What can i do to fix that?

Thx

BenoitAnastay commented 2 months ago

its maybe a duplicate of #137

Can you enable DEBUG and check your addon logs ?

PV-Joe commented 2 months ago

Same here.

Restored Paperless NGX back to v2.06 solved the problem.

Please fix.

rafael298 commented 2 months ago

Same problem here

tobilektri commented 2 months ago

@BenoitAnastay the issue occurs in the current version if you try to login via the open port (in my case: http://192.168.2.207:8011/). If I open Paperless NGX via ingress the login works without issues

BenoitAnastay commented 2 months ago

Restored Paperless NGX back to v2.06 solved the problem.

It's maybe related to this change https://github.com/BenoitAnastay/paperless-home-assistant-addon/pull/168/files#diff-ac6e0dcab49d60e53dd7357527acfbcaa9bf8d14d08f5d9cef3a5a5212274028R11

I'm using another proxy so my setup bypass this one, I need to pass Origin header

BenoitAnastay commented 2 months ago

I try to deploy the fix the fast as I can

PV-Joe commented 2 months ago

Fixed with 2.1.1 Great! Many thx!

treffNIX9815 commented 2 months ago

sorry 4 the late answer, but you guys are very fast! :)

THX 4 fixing