Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sandbox): use https as default protocol for sandboxing
The sandboxing protocol setting is used to determine where to redirect users when sandboxing is enabled. Previously it defaulted to http or https based on whether req.secure was true. In the default setup using Envoy, that's never true because Envoy to service communication goes over http. It could still be overriden using SANDBOX_PROTOCOL environment variable, but most users haven't done that. This change switches the default to https since most people deploy using https. Overrides for http can still be accomplished using the environment variable. Resolves #56
- Loading branch information