linaspurinis / mdblistarr

Companion app for mdblist.com for Radarr and Sonarr integration
20 stars 1 forks source link

Forbidden (403) CSRF verification failed. Request aborted. #1

Open Cartache opened 7 months ago

Cartache commented 7 months ago

Dear,

Thank you for your work. I am getting this error when saving the configuration. Anything I am missing? Thank you for your feedback.

Denis

Cartache commented 7 months ago

Hi,

The issue can be easily solved by creating a local seettings file pointing to the container one: $DOCKER_DIR/mdblistarr/settings.py:/usr/src/app/mdblist/settings.py) and adding the following line: CSRF_TRUSTED_ORIGINS = ['https://myhost.domain1.name', 'https://myhost.domain2.name'] to the original content. Best solution, of course, should be the creation of a env variable with the CSRF_TRUSTED_ORIGINS value.

Regards

Denis

gomaaz commented 6 months ago

Hi,

The issue can be easily solved by creating a local seettings file pointing to the container one: $DOCKER_DIR/mdblistarr/settings.py:/usr/src/app/mdblist/settings.py) and adding the following line: CSRF_TRUSTED_ORIGINS = ['https://myhost.domain1.name', 'https://myhost.domain2.name'] to the original content. Best solution, of course, should be the creation of a env variable with the CSRF_TRUSTED_ORIGINS value.

Regards

Denis

What URLs are these? Url from Radarr / Sonarr ? In Docker you can set a ENV Var = https://myhost.domain2.name ?