Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Localhost not reachable #10

Open
CopyNinja1999 opened this issue Oct 9, 2023 · 0 comments
Open

Localhost not reachable #10

CopyNinja1999 opened this issue Oct 9, 2023 · 0 comments

Comments

@CopyNinja1999
Copy link

firstly I am no networking expert. I pasted the code into the console and replaced my URL and got this err:

const cookie = document.cookie;
const serverUrl = "http://192.168.110.20:8080";

fetch(`${serverUrl}/set-cookie`, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ cookie }),
})
  .then((res) => res.json())
  .then((res) => console.log(res))
  .catch((err) => console.log(err));
Mixed Content: The page at 'https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx' was loaded over HTTPS, but requested an insecure resource 'http://192.168.110.20:8080/set-cookie'. This request has been blocked; the content must be served over HTTPS.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant