Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

Firefox won't store cookie from https://localhost. How do I fix this?

  • 1 ответ
  • 0 имеют эту проблему
  • 1 просмотр
  • Последний ответ от cor-el

more options

I am developing a React application with a Flask backend. The Flask backend has a "login" endpoint that sets an authentication cookie that is then supposed to be used to authenticate the end user in future requests to the backend.

After receiving the cookie from the Flask backend, the React app makes a call like so:

```

   const response = await fetch(apiUrl,{
       method: "GET",
       credentials: "same-origin"
   });

```

but Firefox does not include the authentication cookie. I am told this may be because Firefox doesn't store cookies transmitted over HTTPS from localhost.

For obvious reasons, I want Firefox to store the authentication cookie. What can I do to make sure Firefox stores the cookie?

I am developing a React application with a Flask backend. The Flask backend has a "login" endpoint that sets an authentication cookie that is then supposed to be used to authenticate the end user in future requests to the backend. After receiving the cookie from the Flask backend, the React app makes a call like so: ``` const response = await fetch(apiUrl,{ method: "GET", credentials: "same-origin" }); ``` but Firefox does not include the authentication cookie. I am told this may be because Firefox doesn't store cookies transmitted over HTTPS from localhost. For obvious reasons, I want Firefox to store the authentication cookie. What can I do to make sure Firefox stores the cookie?

Все ответы (1)

more options

Probably best would be to ask advice on a web development oriented forum.