Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 326 Bytes

adding-extra-headers-to-every-request.md

File metadata and controls

12 lines (10 loc) · 326 Bytes
title weight
Adding extra headers to every request
1

To add custom HTTP headers to the navigational HTTP request and all resources that make up the page, use setExtraHttpHeaders:

Browsershot::url('https://example.com')
    ->setExtraHttpHeaders(['Custom-Header-Name' => 'Custom-Header-Value'])
   ...