Back to Browsershot

Using cookies

docs/miscellaneous-options/using-cookies.md

5.3.0356 B
Original Source

You can add cookies to the request to the given url:

php
Browsershot::url('https://example.com')
    ->useCookies(['Cookie-Key' => 'Cookie-Value'])
   ...

You can specify the domain to register cookies to, if necessary:

php
Browsershot::url('https://example.com')
    ->useCookies(['Cookie-Key' => 'Cookie-Value'], 'ui.example.com')
   ...