tuhinpal / bingchat-api

Bing Chat unofficial API
MIT License
163 stars 37 forks source link

Localhost not reachable #10

Open CopyNinja1999 opened 1 year ago

CopyNinja1999 commented 1 year ago

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.