Cookies are sent only for direct requests, not for page resources
See original GitHub issueHello. I have simple config:
var config = new Configuration()
.WithDefaultLoader(setup => setup.IsResourceLoadingEnabled = true)
.WithCookies();
When I send new request, cookies are sent only with page request, not with requests for page’s resources (images, css files). Am I missing some config settings?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Avoiding cookies while requesting static content
Cookie are "attached" to a domain and a path. If you set cookies for a path above your files, they'll be sent with...
Read more >If browser cookies aren't shared between different websites ...
While it is true that JavaScript has no direct access to the banking session cookie, it could still send and receive requests to...
Read more >Using HTTP cookies - MDN Web Docs - Mozilla
None specifies that cookies are sent on both originating and cross-site requests, but only in secure contexts (i.e., if SameSite=None then the ...
Read more >What are HTTP cookies?
Cookies are small pieces of data used as a storage medium in the browser and sent to the server with each request. They...
Read more >Testing for Cookies Attributes
In other words, the data associated with the cookie will only be sent on requests matching the current site shown on the browser...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed, see PR #423.
Yes, the resource loader actually never transports the cookie. As an intermediate work-around you could provide your own resource loader that inherits from
ResourceLoader
and overridesDownloadAsync
. In this method you would add thecookie
header with the value obtained via aGetCookie(request.Address)
call.A fix to this will be provided with the next release.