Giter Club home page Giter Club logo

Comments (9)

therebelrobot avatar therebelrobot commented on May 10, 2024 13

I submitted a PR to this and zeit/schemas to support this, hopefully it'll take 🤞

#96 and vercel/schemas#54

from serve-handler.

bastiW avatar bastiW commented on May 10, 2024 4

Really would like to have this feature too, to protect my dev environment to be discovered and used accidentally

from serve-handler.

1cedsoda avatar 1cedsoda commented on May 10, 2024

Yes, some kind of password protection would be nice.

from serve-handler.

revolunet avatar revolunet commented on May 10, 2024

Before [email protected], one could use SERVE_USER and SERVE_PASSWORD in the now.json to password-protect static deployments.

Looks like this feature has gone for all zeit static hosted websites that relied on it ? (even premium) ?

from serve-handler.

flawyte avatar flawyte commented on May 10, 2024

I need to add some kind of password protection to my deployments too.

As it isn't supported "natively" by now, maybe there's the possibility to use node.js or PHP (or any other server language) to send back the good auth headers so the browser asks the user for authentication, like with HTTP Basic Authentication. Then you'd have to check the credentials by yourself in your code.

EDIT: I've put together an example of how to implement Basic Auth manually using node.js : https://github.com/flawyte/now-basic-auth

from serve-handler.

janhoogeveen avatar janhoogeveen commented on May 10, 2024

Basic auth would be great while still developing applications that are not supposed to be public yet. Bonus points for adding an IP whitelist too serve as well.

from serve-handler.

arielaco avatar arielaco commented on May 10, 2024

Bumping this.

from serve-handler.

warren-bank avatar warren-bank commented on May 10, 2024

shameless self-promotion alert:
this feature is available in my @warren-bank/serve fork of serve

from serve-handler.

chengjianhua avatar chengjianhua commented on May 10, 2024

Any progress?

from serve-handler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.