Skip to content

fix: prepend scheme to access url #3317

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

Merged
merged 3 commits into from
Jul 31, 2022
Merged

fix: prepend scheme to access url #3317

merged 3 commits into from
Jul 31, 2022

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Jul 30, 2022

  • Problems can arise spawning workspaces if a scheme-less URL is passed
    as the access URL.

    If an access URL is detected to not have an "http" or "https" scheme
    then it is prepended with "https". If the hostname is detected
    to be a loopback device then "http" is preferred.

fixes #2874

sreya added 2 commits July 30, 2022 00:46
- Problems can arise spawning workspaces if a schemeless URL is passed
  as the access URL.

  If an access url is detected to not have an "http" or "https" scheme
  then it is prepended with "https". If the hostname is detected
  to be a loopback device then "http" is preferred.
@sreya sreya requested a review from dwahler July 30, 2022 00:54
@sreya sreya merged commit 8b17bf9 into main Jul 31, 2022
@sreya sreya deleted the jon/fixaccessurl branch July 31, 2022 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CODER_ACCESS_URL shouldn't require protocol
2 participants