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

Hostname (homeassistant.local) not resolved as allowed URL #69

Closed
MelleD opened this issue Jan 22, 2024 · 5 comments · Fixed by #72
Closed

Hostname (homeassistant.local) not resolved as allowed URL #69

MelleD opened this issue Jan 22, 2024 · 5 comments · Fixed by #72
Labels
bugfix Something isn't working
Milestone

Comments

@MelleD
Copy link

MelleD commented Jan 22, 2024

Hi @BenoitAnastay,

thanks for this Add-On :).

I am currently try it our and cannot login, cause of this error.
Can you give me a hint what is wrong?

[2024-01-22 17:28:47,227] [WARNING] [django.security.csrf] Forbidden (Origin checking failed - http://homeassistant.local:8123 does not match any trusted origins.):

@MelleD
Copy link
Author

MelleD commented Jan 22, 2024

Set the paperless url to: http://homeassistant.local:8123

Then it works :)

@MelleD MelleD closed this as completed Jan 22, 2024
@BenoitAnastay
Copy link
Owner

Its should be set automatically from internal_url setting

What are the Home Assistant URL set here ?
https://my.home-assistant.io/redirect/network/

@BenoitAnastay BenoitAnastay reopened this Jan 22, 2024
@MelleD
Copy link
Author

MelleD commented Jan 22, 2024

@BenoitAnastay thanks for your quick answer:

I'm just using the default:
Hostname: homeassistant
Local Network: Automatic

Your instance URL: http://homeassistant.local:8123

@BenoitAnastay
Copy link
Owner

Thanks, it's maybe an issue with Home Assistant, I'll try to investigate that

@BenoitAnastay
Copy link
Owner

So in your case it's the hostaname appended with .local:8123 (https://github.com/home-assistant/cli/blob/c1ab453cabe154729a88c165c63a41c575c30c11/cmd/banner.go#L162)

I'll add this URL to the list of allowed URLs

@BenoitAnastay BenoitAnastay added the bugfix Something isn't working label Jan 23, 2024
@BenoitAnastay BenoitAnastay added this to the Next release milestone Jan 23, 2024
@BenoitAnastay BenoitAnastay changed the title Forbidden Origin checking failed Hostname (homeassistant.local) not resolved as allowed URL Jan 23, 2024
@BenoitAnastay BenoitAnastay linked a pull request Jan 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants