Fork me on GitHub
#yada
<
2019-05-02
>
deva15:05:26

Hello All, I have a question on recommended way of using yada. I know there is a edge repository, but I am little confused on the overall project structure. How does the overall project structure look like. Appreciate if any one points me to open example which is based on edge

mccraigmccraig15:05:02

our pentest contractors just logged an XSS vulnerability relating to yada error messages - when a request fails parameter validation and an HTML 400 response is generated, the failing parameters are included without quoting - PR welcome @malcolmsparks @dominicm?

dominicm15:05:49

You could disable stacks in production

mccraigmccraig15:05:17

probably a good idea in the short-term - how do i do that ?

mccraigmccraig15:05:35

do i have to provide a :responses map for every handler, or is there a global switch somewhere ?

dominicm15:05:44

there's a flag that can go on every resource, but you'll need to postwalk to do it

dominicm15:05:20

I've forgotten the name of the flag, has "stack" in I think