Fix https redirect
parent
9e39dd3313
commit
97fc02a543
|
|
@ -391,7 +391,7 @@ async function runHttpsServer()
|
||||||
|
|
||||||
app.all('*', async (req, res, next) =>
|
app.all('*', async (req, res, next) =>
|
||||||
{
|
{
|
||||||
if (req.secure)
|
if (req.secure || config.httpOnly )
|
||||||
{
|
{
|
||||||
const ltiURL = new URL(`${req.protocol }://${ req.get('host') }${req.originalUrl}`);
|
const ltiURL = new URL(`${req.protocol }://${ req.get('host') }${req.originalUrl}`);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue