{"id":17188228,"url":"https://github.com/jclem/express-ssl","last_synced_at":"2025-07-16T10:37:25.839Z","repository":{"id":15789227,"uuid":"18528457","full_name":"jclem/express-ssl","owner":"jclem","description":"Enforce SSL for Express apps","archived":false,"fork":false,"pushed_at":"2014-12-19T18:05:44.000Z","size":196,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T07:23:15.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/express-ssl","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jclem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-07T18:35:46.000Z","updated_at":"2020-08-01T00:37:47.000Z","dependencies_parsed_at":"2022-07-16T07:30:29.294Z","dependency_job_id":null,"html_url":"https://github.com/jclem/express-ssl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jclem/express-ssl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fexpress-ssl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fexpress-ssl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fexpress-ssl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fexpress-ssl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jclem","download_url":"https://codeload.github.com/jclem/express-ssl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jclem%2Fexpress-ssl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265503461,"owners_count":23778092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T01:08:27.267Z","updated_at":"2025-07-16T10:37:25.783Z","avatar_url":"https://github.com/jclem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-ssl\n\nexpress-ssl enforces SSL for Express apps.\n\n## Use\n\nSimply require and use the function exported by this module:\n\n```javascript\nvar ssl = require('express-ssl');\nvar app = require('express')();\napp.use(ssl());\n```\n\nThe function requires an optional object of options:\n\n- `disabled`: (default `false`) If `true`, this middleware will allow all\nrequests through.\n- `trustProxy`: (default `false`) If `true`, trust the `x-forwarded-proto`\nheader. If it is \"https\", requests are allowed through.\n- `disallow`: A function called with the request and response so that the user\ncan handle rejecting non-SSL requests themselves.\n\nBy default, this middleware will only run when `process.env.NODE_ENV` is set to\n\"production\". Unless a `disallow` function is supplied it will respond with the\nstatus code 403 and the body \"Please use HTTPS when communicating with this\nserver.\"\n\n## Thanks, Heroku\n\nWhile I created and maintain this project, it was done while I was an employee\nof [Heroku][heroku] on the Human Interfaces Team, and they were kind enough to\nallow me to open source the work. Heroku is awesome.\n\n[heroku]: https://www.heroku.com/home\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjclem%2Fexpress-ssl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjclem%2Fexpress-ssl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjclem%2Fexpress-ssl/lists"}