Skip to content

Commit

Permalink
Merge pull request Shopify#1046 from stevekanter-arcticleaf/patch-1
Browse files Browse the repository at this point in the history
Disable HSTS for dev server
  • Loading branch information
t-kelly authored Oct 3, 2019
2 parents 6f6559b + dd16940 commit ba965bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/slate-tools/tools/dev-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ class DevServer {
req.url += prefix + queryStringComponents.join('&');
next();
},
proxyRes: [
function(proxyRes) {
// disable HSTS. Slate might force us to use HTTPS but having HSTS on local dev makes it impossible to do other non-Slate dev.
delete proxyRes.headers['strict-transport-security'];
},
],
},
https: {key: getSSLKeyPath(), cert: getSSLCertPath()},
logLevel: 'silent',
Expand Down

0 comments on commit ba965bd

Please sign in to comment.