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

Fix CSRF handling #115

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Fix CSRF handling #115

merged 1 commit into from
Jan 23, 2024

Conversation

thespad
Copy link
Member

@thespad thespad commented Jan 22, 2024

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Closes #112 and #114

Logic for CSRF setting was wrong and causing inconsistent behaviour. We now default to the value of $SITE_ROOT if nothing is provided, otherwise set to the literal value of the CSRF_TRUSTED_ORIGINS env.

Benefits of this PR and context:

How Has This Been Tested?

Source / References:

@thespad thespad requested a review from a team January 22, 2024 18:01
@thespad thespad self-assigned this Jan 22, 2024
@LinuxServer-CI
Copy link
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/healthchecks/v3.1-pkg-b62f1681-dev-d7555e94bb19f6cbd95015b818ed13394c85536d-pr-115/index.html
https://ci-tests.linuxserver.io/lspipepr/healthchecks/v3.1-pkg-b62f1681-dev-d7555e94bb19f6cbd95015b818ed13394c85536d-pr-115/shellcheck-result.xml

Tag Passed
amd64-v3.1-pkg-b62f1681-dev-d7555e94bb19f6cbd95015b818ed13394c85536d-pr-115
arm64v8-v3.1-pkg-b62f1681-dev-d7555e94bb19f6cbd95015b818ed13394c85536d-pr-115

@thespad thespad merged commit 64553f1 into master Jan 23, 2024
7 checks passed
@thespad thespad deleted the csrf-handling branch January 23, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] Wrong documentation for CSRF_TRUSTED_ORIGINS
3 participants