Detection of https API doesn't work anymore from http frontend #2035

Closed
opened 2023-03-29 11:04:55 +00:00 by dpschen · 4 comments
Member

Description

  1. Start a local version of the frontend with only http.
  2. Try to connect to an api instance by only typing in the host e.g. try.vikunja.io.

Expected result

Frontend should try if there is an https version of the api and connect to that if it exists. Unsure because of possible security implications: it should follow 301 redirects.

Actual result

Frontend tries to connect to the host via http. This will fail for an https api, so http://try.vikunja.io will fail.

Vikunja Frontend Version

dev

Vikunja API Version

v0.20.4+40-5114f53307

Browser and version

Chromium

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

image

### Description 1) Start a local version of the frontend with only http. 2) Try to connect to an api instance by only typing in the host e.g. `try.vikunja.io`. ## Expected result Frontend should try if there is an https version of the api and connect to that if it exists. Unsure because of possible security implications: it should follow 301 redirects. ## Actual result Frontend tries to connect to the host via http. This will fail for an https api, so `http://try.vikunja.io` will fail. ### Vikunja Frontend Version dev ### Vikunja API Version v0.20.4+40-5114f53307 ### Browser and version Chromium ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots ![image](/attachments/cbdd6c03-c116-4efb-b6f2-3af060368b06)
dpschen added the
kind/bug
label 2023-03-29 11:04:55 +00:00
dpschen changed title from Automatic detection of API end result doesn't work anymore from local dev to Detection of https API doesn't work anymore from http frontend 2023-03-29 11:08:11 +00:00
Owner

Does it work if you enter the url with the protocol?

Does it work if you enter the url with the protocol?
Owner

Probably a regression by vikunja/frontend#3303

Probably a regression by https://kolaente.dev/vikunja/frontend/pulls/3303
Author
Member

Does it work if you enter the url with the protocol?

Yes. But typing that in is a bit annoying.

> Does it work if you enter the url with the protocol? Yes. But typing that in is a bit annoying.
Author
Member
Related: https://kolaente.dev/vikunja/frontend/pulls/1019#issuecomment-19608
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#2035
No description provided.