Content server: Workaround for chrome bug causing multiple sign in prompts when connecting to the server after restarting Chrome. Fixes #1982060 [multiple login prompts on web server](https://bugs.launchpad.net/calibre/+bug/1982060)

This commit is contained in:
Kovid Goyal 2022-07-19 12:20:23 +05:30
parent 0e27235922
commit 202f537913
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,7 +35,7 @@ from polyglot.builtins import iteritems, itervalues
POSTABLE = frozenset({'GET', 'POST', 'HEAD'})
@endpoint('', auth_required=False)
@endpoint('', auth_required=True) # auth_required=True needed for Chrome: https://bugs.launchpad.net/calibre/+bug/1982060
def index(ctx, rd):
ans_file = lopen(P('content-server/index-generated.html'), 'rb')
if not in_develop_mode: