plugin-blockpath icon indicating copy to clipboard operation
plugin-blockpath copied to clipboard

Allow restricting this to certain HTTP verbs

Open sfudeus opened this issue 1 year ago • 0 comments

A helpful addition to this is the ability to configure a list of HTTP verbs for each regex path which allows to configure which verbs to block for specific paths. There are use cases where only certain verbs need to be blocked.

Are you willing to take a PR implementing this?

A sample config for this might look like:

testData:
  blockentries:
  - regex:
    - "^/foo(.*)"
    methods:
    - POST
    - GET
  - regex:
    - "^/foo-blockallmethods(.*)"

sfudeus avatar Mar 28 '24 08:03 sfudeus