carefree0910 / carefree-creator

AI magics meet Infinite draw board.
https://creator.nolibox.com/guest
MIT License
2.13k stars 216 forks source link

Add some details about ngrok #5

Closed Explosion-Scratch closed 1 year ago

Explosion-Scratch commented 1 year ago
carefree0910 commented 1 year ago

I registered a new account and found out that even without clicking the Visit Site, I can still use the server 🤔

Did you go into trouble when you hadn't clicked that?

carefree0910 commented 1 year ago

Strange, I asked some friends to test it out and one (and only one) of them cannot visit the ngrok until he clicked the Visit Site... I'll merge this PR then 😉

Explosion-Scratch commented 1 year ago

Strange, I asked some friends to test it out and one (and only one) of them cannot visit the ngrok until he clicked the Visit Site... I'll merge this PR then 😉

Adding a custom User-Agent header in the webui when fetching would solve this. Just do:

fetch("url", {
   headers: {
      "User-Agent": "NoliCreator/e29b484"
   }
})
carefree0910 commented 1 year ago

Just curious, is the e29b484 in this piece of code:

fetch("url", {
   headers: {
      "User-Agent": "NoliCreator/e29b484"
   }
})

a random string, or something important? 😏

Explosion-Scratch commented 1 year ago

Just curious, is the e29b484 in this piece of code:

fetch("url", {
   headers: {
      "User-Agent": "NoliCreator/e29b484"
   }
})

a random string, or something important? 😏

Commit hash 😉 It would also be best practice to put (youremail@selfhostedemailisbetter.com) after that

carefree0910 commented 1 year ago

Got it! I'll dive into it a little bit later and try to integrate it in the webui codes! 😆