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

Domain does not match any trusted origins. #4301

Open
dungle-rg opened this issue Mar 5, 2025 · 3 comments
Open

Domain does not match any trusted origins. #4301

dungle-rg opened this issue Mar 5, 2025 · 3 comments
Labels
needs: troubleshooting Issues that we can't reproduce or need to investigate further before picking a course of action type: bug user reported Reported by a Mathesar user

Comments

@dungle-rg
Copy link

Description

Expected behavior

To Reproduce

Environment

  • OS: (eg. macOS 10.14.6; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Browser Version: (eg. 13; 73)
  • Other info:

Additional context

@dungle-rg dungle-rg added needs: triage This issue has not yet been reviewed by a maintainer type: bug labels Mar 5, 2025
@dungle-rg
Copy link
Author

dungle-rg commented Mar 5, 2025

Added .env: ALLOWED_HOST="*"
Log Caddy: 
"X-Forwarded-Proto":["http"],"Cf-Connecting-Ip":["118.70.X.X"],"Origin":["https://mathesar.dev.domain.com"],

ERROR:
Reason given for failure:

    Origin checking failed - https://mathesar.dev.domain.com does not match any trusted origins.

@dungle-rg dungle-rg changed the title CSRF Domain does not match any trusted origins. Mar 5, 2025
@zackkrida
Copy link
Member

Hi @dungle-rg can you provide some additional context here about how you've installed Mathesar? There are various ways in which the ALLOWED_HOST value in an .env file could be overwritten by configuration elsewhere.

Are you using a Docker installation or a from scratch installation?

More information will be necessary to help. Thank you!

@zackkrida zackkrida added user reported Reported by a Mathesar user needs: troubleshooting Issues that we can't reproduce or need to investigate further before picking a course of action and removed needs: triage This issue has not yet been reviewed by a maintainer labels Mar 5, 2025
@dungle-rg
Copy link
Author

dungle-rg commented Mar 7, 2025

Hi @dungle-rg can you provide some additional context here about how you've installed Mathesar? There are various ways in which the ALLOWED_HOST value in an .env file could be overwritten by configuration elsewhere.

Are you using a Docker installation or a from scratch installation?

More information will be necessary to help. Thank you!

hi @zackkrida , I just set ALLOWED_HOST="*" on environment variable and installed by using docker image mathesar/mathesar:0.2.1

More context: caddy behind ALB on AWS

@dungle-rg dungle-rg reopened this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: troubleshooting Issues that we can't reproduce or need to investigate further before picking a course of action type: bug user reported Reported by a Mathesar user
Projects
None yet
Development

No branches or pull requests

2 participants