middlewares / https Goto Github PK
View Code? Open in Web Editor NEWPSR-15 middleware to redirect to https and adds the Strict-Transport-Security header
License: MIT License
PSR-15 middleware to redirect to https and adds the Strict-Transport-Security header
License: MIT License
Should this library handle also the cookies? Something like this:
$middleware[] = (new Middlewares\Https())->cookies();
This option modifies all cookies sent by the response, adding the flags secure
and httponly
.
Hi, how could i solve this problem?
$ composer require middlewares/https
Using version ^1.3 for middlewares/https
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for middlewares/https ^1.3 -> satisfiable by middlewares/https[v1.3.0].
- Conclusion: remove middlewares/utils v3.1.0
- Conclusion: don't install middlewares/utils v3.1.0
- middlewares/https v1.3.0 requires middlewares/utils ^2.1 -> satisfiable by middlewares/utils[v2.1.0, v2.1.1, v2.2.0].
- Can only install one of: middlewares/utils[v2.1.0, v3.1.0].
- Can only install one of: middlewares/utils[v2.1.1, v3.1.0].
- Can only install one of: middlewares/utils[v2.2.0, v3.1.0].
- Installation request for middlewares/utils (locked at v3.1.0) -> satisfiable by middlewares/utils[v3.1.0].
Installation failed, reverting ./composer.json to its original content.
I've installed these middlewares in my composer.json:
"require": {
"middlewares/client-ip": "^2.0",
"middlewares/debugbar": "^2.0",
"middlewares/negotiation": "^2.0",
"middlewares/trailing-slash": "^2.0",
"middlewares/www": "^2.0",
}
Tried using this middleware in a project today and upon deployment it put the entire site in a redirect loop back to itself. What would you think of a flag to entirely disabling the redirect? (I gladly craft a PR for it.)
In my set up that is handled in nginx
config way before it hits PHP. And I'm not setting the headers it's checking for.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.