Coder Social home page Coder Social logo

https's People

Contributors

cseufert avatar oscarotero avatar rbogie avatar wyrihaximus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

https's Issues

Cookies

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.

Entirely disabling the redirect

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.

middlewares/https v1.3.0 requires middlewares/utils ^2.1

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",
}

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.