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
router.get('/',async(ctx,next)=>{//Being able to restrict the max length of URL invoked to prevent attacksconstreallyBigURL=`${ctx.protocol}://${ctx.host}/${ctx.url}`;console.log(reallyBigURL.length);}
Expected Behavior:
To be able to restrict when initializing router instance or per route, the max length of the full URL (including protocol, host & URL)
Actual Behavior:
I can't find an option in the documentation to restrict max URL length
Additional steps, HTTP request details, or to reproduce the behavior or a test case:
The text was updated successfully, but these errors were encountered:
node.js version: v12.14.1
npm/yarn and version: 6.14.5
koa-router
version: 9.0.1koa
version: 2.12.0Code sample:
Expected Behavior:
To be able to restrict when initializing router instance or per route, the max length of the full URL (including protocol, host & URL)
Actual Behavior:
I can't find an option in the documentation to restrict max URL length
Additional steps, HTTP request details, or to reproduce the behavior or a test case:
The text was updated successfully, but these errors were encountered: