Repository: stable-diffusion-webui
Issue: [Bug]: Inpainting when proxied (nginx) doesn't work on firefox
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

When accessing the webui via a reverse proxied connection (nginx) using Firefox, inpainting doesn't work and only produces the same output. This happens with a single image or when requesting batches. This does not happen when using Chrome or Firefox with a direct link (e.g., unproxied). Interestingly, if you watch the generation, you can see images in the vein of what you want appear, but they don't get "merged" correctly. Saving the file also does not produce a proper image.

### Steps to reproduce the problem

1. Ensure that you have an nginx proxy between you and SD.
2. Generate an image in Firefox.
3. Take the image to inpainting, and draw a mask.
4. Generate a new inpainted image; observe that it has not changed at all.
5. Do the exact same thing using Chrome and observe that the images are inpainted as expected.

### What should have happened?

Images should be inpainted properly.

### Commit where the problem happens

89f9faa63388756314e8a1d96cf86bf5e0663045

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

Windows, Android

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

Mozilla Firefox, Google Chrome

### Command Line Arguments

```Shell
--listen --xformers
```


### List of extensions

No

### Console logs

```Shell
Firefox Console: 
fragment content script loaded e-commerce.js:2:5985
google content script loaded e-commerce.js:2:7955
overlay content script loaded e-commerce.js:2:19993
overlay button content script loaded e-commerce.js:2:24036
remote fragment content script loaded e-commerce.js:2:27857
snippet content script loaded e-commerce.js:2:29070
title content script loaded e-commerce.js:2:33557
trigger-event content script loaded e-commerce.js:2:32164
url content script loaded e-commerce.js:2:33917
navigated to https://sd.REDACTED.com/ e-commerce.js:2:34448

CLI: 
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045
Installing requirements
Launching Web UI with arguments: --listen --xformers
Loading weights [e69f4d5a89] from C:\Dev\stable-diffusion-webui-bin\webui\models\Stable-diffusion\projectAIO_allInOneAIOV3-inpainting.safetensors
Creating model from config: C:\Dev\stable-diffusion-webui-bin\webui\configs\v1-inpainting-inference.yaml
LatentInpaintDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.54 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(5): Asian-Less-Neg, By bad artist -neg, ng_deepnegative_v1_75t, realisticvision-negative-embedding, verybadimagenegative_v1.3
Model loaded in 4.8s (load weights from disk: 0.4s, create model: 0.9s, apply weights to model: 0.9s, apply half(): 0.9s, move model to device: 0.7s, load textual inversion embeddings: 1.0s).
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 11.3s (import torch: 1.9s, import gradio: 1.4s, import ldm: 0.6s, other imports: 1.2s, load scripts: 1.0s, create ui: 1.0s, gradio launch: 4.2s).
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:01<00:00,  9.07it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:01<00:00, 12.66it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 14.27it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 14.27it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 14.36it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 14.46it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 14.45it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 14.33it/s]
Total progress: 100%|████████████████████████████████████████████████████████████████| 112/112 [00:14<00:00,  7.95it/s]
```


### Additional information

_No response_