In Edge extension, `browser.cookies.get` only gets cookies on certain pages -


i'm bit puzzled behavior of browser.cookies.get in microsoft edge extension. seems browser returns cookies sites , not others.

for example, when go wikipedia, see in browser tools cookie name wmf-last-access set. when run

browser.cookies.get({name: "wmf-last-access", url: "https://en.wikipedia.org"}, function(c) {console.log(c);}); 

from extension, see cookie.

on other hand, if go login.live.com, see in browser tools sets cookie name didc, when run

 browser.cookies.get({name: "didc", url: "https://login.live.com"}, function(c) {console.log(c);}); 

it prints null.

i've tried mix of session cookies vs. cookies expiration dates, httponly vs. not-httponly, secure vs. not-secure, cookies set set-cookie header vs. cookies set javascript, site seems make difference, not cookie attributes.

stackoverflow , google sites i've tried seem in category login.live.com.

nytimes.com , wsj.com behave wikipedia.

note: i'm aware of known issue in edge cookies.getall documented @ https://developer.microsoft.com/en-us/microsoft-edge/platform/documentation/extensions/api-support/supported-apis/. since doesn't use api call @ all, don't think applies.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -