File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,20 @@ config = {
149
149
" detached" : true
150
150
}
151
151
152
+ // HTTP Cookies that are used for requests
153
+ " httpCookies" : [
154
+ // e.g.
155
+ {
156
+ " name" : " Valid-Cookie-Name" , // required
157
+ " value" : " Valid-Cookie-Value" , // required
158
+ " domain" : " localhost" ,
159
+ " path" : " /foo" , // required
160
+ " httponly" : true ,
161
+ " secure" : false ,
162
+ " expires" : (new Date ()).getTime () + (1000 * 60 * 60 ) // e.g. expires in 1 hour
163
+ }
164
+ ]
165
+
152
166
}
153
167
```
154
168
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ function renderNow () {
72
72
73
73
// Set Content and begin loading
74
74
// -----------------------------
75
+ if ( options . httpCookies ) page . cookies = options . httpCookies
75
76
if ( options . httpHeaders ) page . customHeaders = options . httpHeaders
76
77
if ( options . viewportSize ) page . viewportSize = options . viewportSize
77
78
if ( options . zoomFactor ) page . zoomFactor = options . zoomFactor
You can’t perform that action at this time.
0 commit comments