mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #370] how to put the dufs page with Login information into iframe by URL #197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hjx620 on GitHub (Mar 20, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/370
Specific Demand
put the page into iframe without Login
my dufs ip is http://192.168.5.67:32381. I want to embed the dufs page into another page without login.
I have url,which is http://admin:admin@192.168.5.67:32381. But the url with username and password is not identified by iframe. I must login with enter ing my username and password by my hand. I want to put
username and password in the url,which can be identified by iframe.what should i do?
thank you.
Implement Suggestion
@hjx620 commented on GitHub (Mar 20, 2024):
how can i put the username and password into the URL effectively?
@sigoden commented on GitHub (Mar 20, 2024):
All basic auth related behaviors are controlled by the browser. There's nothing dufs can do.
It is not safe to expose username and password on the front end.
Instead of setting the username and password and having it show up in the url, why not set read-only permissions on the directory via the auth control.