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 3d380bcb.18c51ae1.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[95307],{31200:(e,o,t)=>{t.r(o),t.d(o,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>p});var n=t(85893),s=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/../docs/guides/cookies.md",sourceDirName:"guides",slug:"/guides/cookies",permalink:"/next/guides/cookies",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Chrome Extensions",permalink:"/next/guides/chrome-extensions"},next:{title:"Files",permalink:"/next/guides/files"}},c={},p=[];function u(e){const o={a:"a",h1:"h1",p:"p",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.h1,{id:"cookies",children:"Cookies"}),"\n",(0,n.jsxs)(o.p,{children:["Puppeteer allows modifying cookies for a page ahead of time by using ",(0,n.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,n.jsx)(o.a,{href:"https://pptr.dev/api/puppeteer.page.cookies/",children:"Page.cookies()"}),"."]})]})}function d(e={}){const{wrapper:o}={...(0,s.a)(),...e.components};return o?(0,n.jsx)(o,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},75251:(e,o,t)=>{var n=t(67294),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=n.__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 n,r={},p=null,u=null;for(n in void 0!==t&&(p=""+t),void 0!==o.key&&(p=""+o.key),void 0!==o.ref&&(u=o.ref),o)i.call(o,n)&&!c.hasOwnProperty(n)&&(r[n]=o[n]);if(e&&e.defaultProps)for(n in o=e.defaultProps)void 0===r[n]&&(r[n]=o[n]);return{$$typeof:s,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 n=t(67294);const s={},r=n.createContext(s);function i(e){const o=n.useContext(r);return n.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(s):e.components||s:i(e.components),n.createElement(r.Provider,{value:o},e.children)}}}]); |