mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
/*! For license information please see 7203fbe5.12fcae6f.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[34982],{54456:(e,o,t)=>{t.r(o),t.d(o,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>p});var s=t(85893),n=t(11151);const r={},i="Cookies",a={id:"guides/cookies",title:"Cookies",description:"Puppeteer allows modifying cookies for a page ahead of time by using Page.setCookie().",source:"@site/versioned_docs/version-22.6.4/guides/cookies.md",sourceDirName:"guides",slug:"/guides/cookies",permalink:"/guides/cookies",draft:!1,unlisted:!1,tags:[],version:"22.6.4",frontMatter:{},sidebar:"docs",previous:{title:"Chrome Extensions",permalink:"/guides/chrome-extensions"},next:{title:"Files",permalink:"/guides/files"}},c={},p=[];function u(e){const o={a:"a",h1:"h1",p:"p",...(0,n.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.h1,{id:"cookies",children:"Cookies"}),"\n",(0,s.jsxs)(o.p,{children:["Puppeteer allows modifying cookies for a page ahead of time by using ",(0,s.jsx)(o.a,{href:"https://pptr.dev/api/puppeteer.page.setcookie/",children:"Page.setCookie()"}),".\nYou can also read the cookies set for a page using ",(0,s.jsx)(o.a,{href:"https://pptr.dev/api/puppeteer.page.cookies/",children:"Page.cookies()"}),"."]})]})}function d(e={}){const{wrapper:o}={...(0,n.a)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},75251:(e,o,t)=>{var s=t(67294),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function p(e,o,t){var s,r={},p=null,u=null;for(s in void 0!==t&&(p=""+t),void 0!==o.key&&(p=""+o.key),void 0!==o.ref&&(u=o.ref),o)i.call(o,s)&&!c.hasOwnProperty(s)&&(r[s]=o[s]);if(e&&e.defaultProps)for(s in o=e.defaultProps)void 0===r[s]&&(r[s]=o[s]);return{$$typeof:n,type:e,key:p,ref:u,props:r,_owner:a.current}}o.Fragment=r,o.jsx=p,o.jsxs=p},85893:(e,o,t)=>{e.exports=t(75251)},11151:(e,o,t)=>{t.d(o,{Z:()=>a,a:()=>i});var s=t(67294);const n={},r=s.createContext(n);function i(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); |