Repository: stable-diffusion-webui
Issue: [Bug]: Not work with domain. Only localhost works
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

After git pull i cannot work normally with Web interface anymore.
Tried to delete all files and reclone repo, but with no luck.


### Steps to reproduce the problem

1. Go to mydomain.com
2. Loggin in
3. Write prompt
4. Get error


### What should have happened?

Should work normally as before

### Commit where the problem happens

22bcc7be

### What platforms do you use to access the UI ?

Windows, MacOS, Android

### What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

### Command Line Arguments

```Shell
--no-half --precision full --listen --gradio-auth username:password --api --api-auth anotherusername:anotherpassword --enable-insecure-extension-access
```


### List of extensions

No additional extensions. Clean installation of WebUI

### Console logs

```Shell
API error: GET: http://mydomain.com/file=script.js?1680520043.6671124 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/contextMenus.js?1680520043.6389277 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/dragdrop.js?1680520043.6389277 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/edit-attention.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/aspectRatioOverlay.js?1680520043.6389277 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/extensions.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/extraNetworks.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/generationParams.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/hints.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/hires_fix.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/imageMaskFix.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/imageParams.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/imageviewer.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/localization.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/notification.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/progressbar.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/ui.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680520043.637313 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=style.css?1680520043.6701133 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/textualInversion.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/contextMenus.js?1680520043.6389277 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/dragdrop.js?1680520043.6389277 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/edit-attention.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/extensions.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/extraNetworks.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/generationParams.js?1680520043.6401045 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/hints.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/hires_fix.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/imageMaskFix.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/imageParams.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/imageviewer.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/localization.js?1680520043.6411095 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/notification.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/progressbar.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/textualInversion.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=javascript/ui.js?1680520043.642109 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://mydomain.com/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680520043.637313 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
```


### Additional information

![Снимок экрана 2023-04-03 в 14 31 43](https://user-images.githubusercontent.com/32651506/229498281-cb9063d7-0dcb-40a4-ada4-a8606377a28d.png)