Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Use window.location.origin to create InstalledApp url #427

Merged
merged 2 commits into from
Sep 17, 2022
Merged

Use window.location.origin to create InstalledApp url #427

merged 2 commits into from
Sep 17, 2022

Conversation

b-ryan
Copy link
Contributor

@b-ryan b-ryan commented Sep 4, 2022

Previously, the code used http://${window.location.hostname} to build
the base URL for checking the status of an app. Now it uses
${window.location.origin}.

In my case, I have set up nginx as a reverse proxy in order to use TLS
encryption for my node. I am accessing Umbrel via https:// now. As a
result, the functionality to check the status of services was not
working due to the browser blocking mixed content requests.

I have not actually tested this code, as I don't have a development environment set up for Umbrel. I'm hoping someone else can test or this is straightforward enough to include.

Previously, the code used http://${window.location.hostname} to build
the base URL for checking the status of an app. Now it uses
${window.location.origin}.

In my case, I have set up nginx as a reverse proxy in order to use TLS
encryption for my node. I am accessing Umbrel via https:// now. As a
result, the functionality to check the status of services was not
working due to the browser blocking mixed content requests.
@b-ryan
Copy link
Contributor Author

b-ryan commented Sep 6, 2022

I got this project running locally to test and this change is working as expected.

@lukechilds
Copy link
Member

@b-ryan good catch and thanks for submitting a PR! Would you be able to just confirm my amendments still resolve your issue? If so this is good to merge!

@b-ryan
Copy link
Contributor Author

b-ryan commented Sep 13, 2022

What you said makes sense, glad you caught that. This does indeed still resolve my issue, thanks!

@lukechilds
Copy link
Member

Awesome, thanks @b-ryan!

@lukechilds lukechilds merged commit b6256fb into getumbrel:master Sep 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants