Skip to content

Is there a way to limit the resize height/width via URL? #324

Answered by tocsoft
Spinks90 asked this question in Q&A
Discussion options

You must be logged in to vote

there are a couple of way to handle this.

  1. create a custom command parser (see QueryCollectionRequestParser.cs for our default parser to copy) and limit your values there.
  2. make use of our securing comands pipeline (Securing commands docs) to lock down requests so they can't be tampered with to generate image sizes you don't want to allow.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Spinks90
Comment options

Answer selected by Spinks90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants