How to pass Regex to Shield


#1

Hey!
Tried to pass a Regex /^\/(api)\//g to Shield’s CSRF filterUris and nothing happed.
How it should be done?


#2

Hey @keeross! :wave:

If you want to match all url with /api/* you may want to use ^\/(api)\/[a-z0-9.\-_]+\/? .


#3

Yeah the regex is not correct, @keeross you can try your regexes on regexr.com