-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
bug: Cross-site POST form submissions are forbidden #170
Comments
Just to confirm, you use:
But are trying to access from Also thanks for the extremely detailed issue 😄 |
Thank you for looking into this. Let me clarify the setup:
Both scenarios result in the same "Cross-site POST form submissions are forbidden" error. This suggests the issue isn't related to IP address mismatches, as you'd expect the second configuration to work if that were the case |
Hmm, the second origin should definitely work. Technically this is a bit out of my control and the only relevant docs are here from SvelteKit which describe your issue:
Personally I use cloudflare tunnel, and in that situation I don't need to set the ORIGIN env so it's hard for me to tell what's going on here |
Is there a way you could implement a workaround? The |
Hey @AdaptCharm if this is still an issue then I can look at adding a workaround |
Description of the bug
Environment & Version:
danonline/autopulse:ui
,danonline/autopulse:latest
,postgres:alpine
]Reproduction steps:
See below.
Expected result:
When the
ORIGIN
environment variable is set for theautopulse-ui
container, authenticating from the frontend should not return a JSON error stating:Cross-site POST form submissions are forbidden
.Actual result:
The following error is returned instead:
{"message":"Cross-site POST form submissions are forbidden"}
Complete log:
See below.
Even after implementing the solution suggested in #85, I am still unable to log into the UI.
Steps To Reproduce
Use the following compose file below. Replace
[INTERNAL_IP]
with your static internal/intranet IP address (usehostname -I
to find it)Click to toggle
Use the first and/or second method below to access the UI.
Navigate to
http://[REMOTE_IP]:2880/login
, input username and password, and click the "Sign In" buttonMake a POST request (via Insomnia, Postman, etc.) using the payload below. Replace
[REMOTE_IP]
,[USERNAME]
and[PASSWORD]
with your own values.Click to toggle
Additional Information
(
autopulse-ui
)Logs:
Click to toggle
(
autopulse
)Logs:
Click to toggle
(
autopulse-postgres
)Logs:
Click to toggle
The text was updated successfully, but these errors were encountered: