Comments (9)
I submitted a PR to this and zeit/schemas to support this, hopefully it'll take 🤞
#96 and vercel/schemas#54
from serve-handler.
Really would like to have this feature too, to protect my dev environment to be discovered and used accidentally
from serve-handler.
Yes, some kind of password protection would be nice.
from serve-handler.
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.
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.
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.
Bumping this.
from serve-handler.
shameless self-promotion alert:
this feature is available in my @warren-bank/serve
fork of serve
from serve-handler.
Any progress?
from serve-handler.
Related Issues (20)
- Download not open files
- headers from piv card being sent to react application not transfering to fetch calls from application
- Don't understand the docs! How do I redirect all '/default/assets' to 'public/default/assets'? HOT 2
- 416 error with valid range header HOT 1
- Content-Length header missing on GET but present on HEAD request HOT 1
- Request losts when POSTing redirected url HOT 2
- This is not an issue but with High Vulnerable on one of dependency
- If vercel handler is served under a path like /blog/ inside nginx then trailingSlash option redirects will redirect to top level domain name HOT 1
- -S parameter doesn't work on Linux machine.
- How to use custom domain and HTTPS?
- Symlinks option not working as expected in serve.json
- ✨ Configure base path via CLI option
- serve not using 404.html file to display 404 errors
- Can I convert the displayed filename?
- .html is stripped along with query params from URL HOT 2
- Vulnerability in minimatch 3.0.4 HOT 2
- # [Codecov](https://codecov.io/gh/zeit/serve-handler/pull/75?src=pr&el=h1) Report
- Ambiguous readme HOT 1
- Can't add headers to sourcemap files HOT 1
- Rewrite not working in v14.2.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serve-handler.