Skip to content

Commit

Permalink
prøver med original uirl
Browse files Browse the repository at this point in the history
  • Loading branch information
sindredl committed Feb 23, 2024
1 parent 5fed94a commit 41853ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/proxy/api-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function setupPath(app: Express) {

app.use('/tiltaksgjennomforing/api', (req, res, next) => {
console.log('apiProxy /tiltaksgjennomforing/api');
if (whitelistPaths.includes(req.url)) {
if (whitelistPaths.includes(req.originalUrl)) {
next();
}
if (!req.headers['authorization']) {
Expand Down

0 comments on commit 41853ca

Please sign in to comment.