Mercurial > libervia-web
annotate libervia/pages/_browser/loading.py @ 1467:d6062cccd4c0
server: better reverse proxy headers handling:
reverse proxy header were not used if `X-Forwarded-Host` was not set, with this patch
`X-Forwarded-Host` and `X-Forwarded-Proto` are check independently. Furthermore, the new
standardised `Forwarded` header is not checked too.
fix 396
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 30 Sep 2021 18:40:49 +0200 |
parents | 08739952a18f |
children |
rev | line source |
---|---|
1371
08739952a18f
browser: new `loading` module to remove loading screen
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 """manage common dialogs""" |
08739952a18f
browser: new `loading` module to remove loading screen
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 |
08739952a18f
browser: new `loading` module to remove loading screen
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 from browser import document |
08739952a18f
browser: new `loading` module to remove loading screen
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 |
08739952a18f
browser: new `loading` module to remove loading screen
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 def remove_loading_screen(): |
08739952a18f
browser: new `loading` module to remove loading screen
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 print("removing loading screen") |
08739952a18f
browser: new `loading` module to remove loading screen
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 document['loading_screen'].remove() |