Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Missing Cookies in Set-Cookie Header in webRequest.onHeadersReceived callback in Safari Web Extension

We’re seeing an issue in our Safari Web Extension where not all cookies from the Set-Cookie response header are accessible. We are using macOS 15.4 and Safari 18.4.

In the webRequest.onHeadersReceived callback, the Set-Cookie header returned by Safari only includes some of the cookies set by the server. If multiple Set-Cookie headers are present, we seem to receive only a partial list, some cookies are missing entirely.

In Chrome and Firefox, the same callback provides all cookies set by the server without issue.

We are looking for assistance in fixing these issues and having our Safari Extension function the same as it does in Firefox and Chrome.

Missing Cookies in Set-Cookie Header in webRequest.onHeadersReceived callback in Safari Web Extension
 
 
Q