stable-diffusion-webui
stable-diffusion-webui copied to clipboard
dont send server address in a-href
Description
Gradio sets these tags automatically when generates hyperlinks from markdown rel="noopener noreferrer" I've added them into webui's html
You can see users' non-local server addresses (e.g. --share or their hosting) in github's repo statistics for example, when they go to the repo via Extensions tab. Other sites can see them too. This PR fixes this
Checklist:
- [x] I have read contributing wiki page
- [x] I have performed a self-review of my own code
- [x] My code follows the style guidelines
- [x] My code passes tests
I think it might be possible to just set Referrer-Policy header no-referrer to automatically apply to the entire web page https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
- try this https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15641
I thinks it's good to merge both
I thinks it's good to merge both
in my opinion if the global one works then just the global one is better less clutter the the code
I merged the other one and if it achieves the result, I don't want to add more changes. If this change is still wanted, reopen the PR.