Skip to content

Commit 8a3c781

Browse files
committed
overwrite auth header in proxy
1 parent 3859bb1 commit 8a3c781

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

pyttoresque/app/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def setup_couchdb():
6666
return {
6767
# hardcode port for backend access
6868
'command': cmd,
69-
'port': 5984
69+
'port': 5984,
70+
'request_headers_override': {"Authorization": "Basic YWRtaW46YWRtaW4="}
7071
}
7172

7273
def setup_panel():

pyttoresque/app/templates/editor.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
<div id="mosaic_editor"></div>
3131
<script>
3232
{% if couchdb %}
33-
var url = new URL("/couchdb/", window.location)
34-
url.username = "admin"
35-
url.password = "admin"
36-
window.dburl = url.href
33+
window.dburl = new URL("/couchdb/", window.location).href
3734
{% endif %}
3835
window.notebookurl = "../../lab"
3936
window.simulatorurl = "../../panel/app"

pyttoresque/app/templates/libman.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
<div id="mosaic_libman"></div>
3131
<script>
3232
{% if couchdb %}
33-
var url = new URL("/couchdb/", window.location)
34-
url.username = "admin"
35-
url.password = "admin"
36-
window.dburl = url.href
33+
window.dburl = new URL("/couchdb/", window.location).href
3734
{% endif %}
3835
</script>
3936
<script src="{{ static_url('common.js') }}"></script>

0 commit comments

Comments
 (0)