diff options
author | vnugent <public@vaughnnugent.com> | 2024-01-13 22:46:49 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-01-13 22:46:49 -0500 |
commit | b6bd8c9305f08b64a78ec5f2c56b0fbaa12163db (patch) | |
tree | df7328b1d1e0059f2f7f599a6c4c7e7f465a9a06 /lib/vnlib.browser/src/axios/index.ts | |
parent | bbec3d87a356cd6401ba16e47554780a1ecd8ced (diff) |
some request security updates
Diffstat (limited to 'lib/vnlib.browser/src/axios/index.ts')
-rw-r--r-- | lib/vnlib.browser/src/axios/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vnlib.browser/src/axios/index.ts b/lib/vnlib.browser/src/axios/index.ts index 644011e..2780102 100644 --- a/lib/vnlib.browser/src/axios/index.ts +++ b/lib/vnlib.browser/src/axios/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Vaughn Nugent +// Copyright (c) 2024 Vaughn Nugent // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -37,7 +37,7 @@ const configureAxiosInternal = (instance: Axios, session: ISession, tokenHeader: // See if the current session is logged in if (tokenHeaderValue && loggedIn.value) { // Get an otp for the request - config.headers[tokenHeaderValue] = await generateOneTimeToken() + config.headers[tokenHeaderValue] = await generateOneTimeToken(config.url!); } // Return the config return config |