Hey All,
I'm trying to add the Authorization header while zap is doing the active Scan. In my case Authentication is done by JSON , I have done the following step to authenticate into the application.
Note : I have selected the zest script because in my scenario some headers are required in the request. i.e (Origin, Content-Type, Authorizaton : Bearer undefined).
But for the active scan purpose, I need the Authorization token in my every request
(Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsImlhdCI6MTY1MDYyNzAwMSwiZXhwIjoxNjUwNjMwNjAxfQ.w7A3oNeldNdoKOOOFaghdELOfsDMnCXsJ5NqtmtZE08 ).
how do I achieve this?

Hi Simon,
I have successfully achieved this. Now in my scenario, for an authenticated spidering I need to specify the "POLL URL" for Logged in Indicator and Add the multiple headers in Additional Poll Request Headers using the ZAP API. However, I go through the ZAP API and tried the thing mentioned there but didn't find any way to do it.
also tried another possible way (load session file) to achieve this but faced two major problems during it.1. It takes too much time to load a session file and sometimes through error/some time didn't load the complete file.
2. It corrupts the session file after loading so I was unable to load it next time/data was not loaded completely. (worst behavior)Kindly look into this.
