Skip to content

Commit

Permalink
Moved config variables to the top.
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-ds committed Feb 6, 2024
1 parent 4d2a932 commit 0976bbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Proxy/HTTP/FilterAuthenticated.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* @author joe-ds (https://github.com/joe-ds)
**/

var configNoFilter = true; // If set to false, won't show JS, GIF, JPG, PNG, CSS.
var configNotInScopeOnly = true; // If set to false, won't show out-of-scope items.
var sessionCookieName = ""; // If given, will look for a cookie with that name.
var sessionCookieValue = ""; // If given, will check if cookie with sessionCookieName has this value.

if (!requestResponse.hasResponse()) {
return false;
}
Expand All @@ -15,11 +20,6 @@ if (!response.isStatusCodeClass(StatusCodeClass.CLASS_2XX_SUCCESS)) {
return false;
}

var configNoFilter = true; // If set to false, won't show JS, GIF, JPG, PNG, CSS.
var configNotInScopeOnly = true; // If set to false, won't show out-of-scope items.
var sessionCookieName = ""; // If given, will look for a cookie with that name.
var sessionCookieValue = ""; // If given, will check if cookie with sessionCookieName has this value.

var authHeader = request.hasHeader("Authorization");

boolean sessionCookie = request.headerValue("Cookie") != null
Expand Down

0 comments on commit 0976bbc

Please sign in to comment.