From f34339f43a97d021f44c5a68f9329bbb2a5563b5 Mon Sep 17 00:00:00 2001 From: Dan Moore Date: Thu, 10 Aug 2023 16:06:31 -0400 Subject: [PATCH] disable basic auth for testing (#2442) --- .../fusionauth-website-request-handler.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cloudfront/fusionauth-website-request-handler.js b/src/cloudfront/fusionauth-website-request-handler.js index 909262ccb9..aa29d0aafc 100644 --- a/src/cloudfront/fusionauth-website-request-handler.js +++ b/src/cloudfront/fusionauth-website-request-handler.js @@ -156,15 +156,15 @@ function handler(event) { } // fusionauth:rocks - if (hdrs.host && hdrs.host.value !== 'fusionauth.io' && (!hdrs.authorization || hdrs.authorization.value !== 'Basic ZnVzaW9uYXV0aDpyb2Nrcw==')) { - return { - statusCode: 401, - statusDescription: 'Unauthorized', - headers: { - 'www-authenticate': { value: 'Basic' } - } - }; - } + //if (hdrs.host && hdrs.host.value !== 'fusionauth.io' && (!hdrs.authorization || hdrs.authorization.value !== 'Basic ZnVzaW9uYXV0aDpyb2Nrcw==')) { + //return { + //statusCode: 401, + //statusDescription: 'Unauthorized', + //headers: { + //'www-authenticate': { value: 'Basic' } + //} + //}; + //} var uri = req.uri; if (uri.endsWith('.html')) {