You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console log the "req.originalUrl"
result => " /jobapply?query=%7B%22page%22:1,%22limit%22:10%7D "
for post,put request it console as => "jobapply"
so the ignoredUrls.includes(req.originalUrl) cant recognize get request with param since it passing with the param.
i did apply temp fix for now..this wont work if url include '?'
in index.js
// split the url
const urlFiltered = req.originalUrl.split("?");`
// pass filtered url
if (ignoredUrls && ignoredUrls.includes(urlFiltered[0])) {
next(); // If the url is in `ignoredUrls`, skip the autherization.
}
The text was updated successfully, but these errors were encountered:
Example request
localhost:8088/jobapply?query={"page":1,"limit":10}
->error 404 notfound
console log the "req.originalUrl"
result => " /jobapply?query=%7B%22page%22:1,%22limit%22:10%7D "
for post,put request it console as =>
"jobapply"
so the
ignoredUrls.includes(req.originalUrl)
cant recognize get request with param since it passing with the param.i did apply temp fix for now..this wont work if url include '?'
in index.js
The text was updated successfully, but these errors were encountered: