It seems Safari 18's fetch() does not include credentials even credentials: include and safari extension has host_permissions for that domain.
Is there anyone has this problem?
I try to request in popup.js like this:
const response = await fetch(
url,
{
method: 'GET',
mode: 'cors',
credentials: 'include',
referrerPolicy: 'no-referrer',
}
);
and it does not include the cookie from host_permissions.
Those code worked in Safari 17 (macOS Sonoma).
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
New NavigationSplitView is hard to use on watchOS.
NavigationSplitView requires List to selection (for NavigationLink's init(_:value:)),
but all selection methods are marked as unavailable on watchOS.
(https://developer.apple.com/documentation/swiftui/navigationsplitview)
(https://developer.apple.com/documentation/swiftui/list/init(_:selection:rowcontent:)-1q8lq)
Well, It can be use old deprecated init(_:destination:) on NavigationLink... but It is weird.
I filled feedback. (FB11403019)
It seems fetch() does not include credentials (cookie) even when credentials: include is used and Safari extension has host_permissions for that domain when using from a non-default Safari profile.
It includes credentials (cookie) when using from the default profile (which has the default name Personal).
Is there anyone who has this problem?
I try to request in popup.js like this:
const response = await fetch(
url,
{
method: 'GET',
mode: 'cors',
credentials: 'include',
referrerPolicy: 'no-referrer',
}
);
and it does not include the credentials (cookie) from host_permissions.
I already posted https://developer.apple.com/forums/thread/764279, and opened feedback assistant (FB15307169).
But it is still not fixed yet. (macOS 15.4 beta 3)
I hope this is fixed soon.