1 parent 074d3e5 commit 863bf1bCopy full SHA for 863bf1b
2 files changed
cefpython/cef3/linux/binaries_32bit/wxpython-response.py
@@ -141,9 +141,12 @@ def ProcessRequest(self, request, callback):
141
self._responseHeadersReadyCallback = callback
142
self._webRequestClient = WebRequestClient()
143
self._webRequestClient._resourceHandler = self
144
- # To skip cache:
145
- # | request.SetFlags(cefpython.Request.Flags["SkipCache"])
146
- # Must keep a strong reference to the WebRequest() object.
+ # Need to set AllowCacheCredentials and AllowCookies for
+ # the cookies to work during POST requests (Issue 127).
+ # To skip cache set the SkipCache request flag.
147
+ request.SetFlags(cefpython.Request.Flags["AllowCachedCredentials"]\
148
+ | cefpython.Request.Flags["AllowCookies"])
149
+ # A strong reference to the WebRequest object must kept.
150
self._webRequest = cefpython.WebRequest.Create(
151
request, self._webRequestClient)
152
return True
cefpython/cef3/linux/binaries_64bit/wxpython-response.py
0 commit comments