konrad 6c999ad148 fix: ensure same protocol for configured api url (#3303)
Resolves https://github.com/go-vikunja/frontend/issues/109

Vikunja would save the api url with `http` instead of `https` when the frontend was accessed via https. This was fine in most cases when the server would redirect all requests made to http to the secure https variant. However, in newer Firefox versions (and soon, Chrome probably as well) the browser would not follow that redirect anymore. Hence, we need to make sure to only make api requests to the same protocol. Doing API requests from an https hosted fronted to an http hosted api would probably fail already anyway.

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/3303
Reviewed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-authored-by: konrad <k@knt.li>
Co-committed-by: konrad <k@knt.li>
2023-03-26 19:18:47 +00:00
..
2022-10-27 17:45:29 +02:00
2022-10-04 13:45:16 +02:00
2022-10-31 22:42:28 +01:00
2022-09-05 17:57:21 +02:00
2022-04-18 17:32:40 +00:00
2022-04-18 17:32:40 +00:00
2022-11-01 13:12:12 +01:00
2022-10-31 22:42:28 +01:00
2022-10-04 09:41:59 +02:00
2022-01-30 16:53:46 +01:00