-
-
Notifications
You must be signed in to change notification settings - Fork 204
feat(isr): add allowed query params options #1743 #1757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
βοΈ Nx Cloud ReportCI is running/has finished running commands for commit 3ab8d52. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. π See all runs for this CI Pipeline Execution β Successfully ran 7 targetsSent with π from NxCloud. |
Hi @maxisam |
sure, not sure where should I put this. I did put some doc in the comments with the config |
@eneajaho Thanks for the review, could you rerun the build? |
@eneajaho everything is green π |
}); | ||
|
||
it('should include only allowed query parameters in the result', () => { | ||
const url = '/page?allowed=value&disallowed=value'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since penetration tests would still try weird things, what would be with the cases:
- `const url = '/page?allowed=value&disallowed=value&allowed=value2';
- `const url = '/page?allowed=value&disallowed=value&allowed=value';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw @maxisam thx for the great work! π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ummm, the current behavior is simply just removing disallowed parts and keep all allowed parts
so they will be
- `const url = '/page?allowed=value&allowed=value2';
- `const url = '/page?allowed=value&allowed=value';
I guess we can override the duplicated one ?
so we should make it like
- `const url = '/page?allowed=value2';
- `const url = '/page?allowed=value';
another thought is I actually want to make the getCacheKey like a pluggable function.
so everyone can have their own cacheKey.
@eneajaho how do you think about pluggable cacheKey function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxisam Yeah we can make the cacheKey function pluggable, good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add it in another PR. Just merged this one.
Co-authored-by: Enea Jahollari <[email protected]>
Co-authored-by: Enea Jahollari <[email protected]>
c396928
to
17fc093
Compare
this should fix #1743 #1720