Safari samesite none cookie added after login but we are facing the issue in post method. While doing the post method cookie not getting into request header.And always sending the new cookie in the response header. Safari not sending the cookie into request header with samesite none. Kindly help me out.
Search results for
ASWebAuthenticationSession cookie
1,295 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
We have already given the authentication in all the API services. And we are getting the valid cookie in browser. But cookie is not storing in the header request while calling the API using the JavaScript method. We are not using the swift and objective code in my application. Kindly suggest how we can set the cookie in header request using the JavaScript in the Cordova framework?
Topic:
Safari & Web
SubTopic:
General
Tags:
I disagree with your assessment that this is kind of how HTTP cookies work. The RFC you link is for how a server needs to interpret a cookie sent to it not how a client should implement creation of one. I think others would likely agree that this is a wart and that setting secure to false would result in the correct behavior of not setting the secure attribute on the cookie. It also make coding something simple like .secure: environment().isSecure() into another if statement that every person coming after will question why it's done this way and then eventually figure it out. The only reason I agree that this likely needs to stay the same is it's a pretty big breaking change at this point and many apps are likely working by accident as setting .secure to anything other than true makes no sense. Anyway... wasted more hours than I would like to admit on this as I was also adding a new networking library as well as adding cookies to the app so I spent a lot of time debugging t
Topic:
App & System Services
SubTopic:
Networking
Tags:
I have a macOS safari web extension and It can read the cookies of my website, but when I fully close safari and open it again the extension can't read the cookies anymore. When I try to inspect the cause in the console (safari > develop > web extension background content) everything starts to work again. My safari version is 18.1 (19619.2.8.111.1, 19619)
I'm a freelancer in iOS development but every now and then I get a request to make small websites for distant relatives or friends or acquaintances of them. I don't like those heavy weight websites that take ages to load (hello WIX) with tons of js and those damned cookies. On the other hand I don't like to make static websites myself in html like in the 90s which look super sparse (though they load very fast). What I would really like is to make use of my Swift/SwiftUI knowledge in web. Been thinking about some minimal framework or some kind of method to do that. Found some toy projects but I don't want to bring the iOS L&F to the web, I want websites to look like websites but made with SwiftUI. No more CSS and HTML. Compiling SwiftUI to html is the first naive idea that comes to mind. But I lack the broad knowledge of web technologies out there so I find myself unable to devise anything that could nearly rival other sophisticated frameworks.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Added more point to clear the issue about cookie store issue in safari browser. Our application uses cookies to remember user login. Every auth API call we make, the browser attaches server-set HTTPOnly cookie with the API request and gets a response. This behaviour seems to be broken in safari after Sequoia release. I read about the cross-site cookie security implemented by safari and our server team added SameSite=None;Secure while setting the cookie. Even after that, it still doesn't work. Cookies are stored in the safari browser but it is not added into the request header on API call. Javascript API code to make requests with httpclient to get the response using Cordova framework in mobile app. The problem is on iOS/safari , the subsequent request does not send the cookie Header with the value. Android is working fine with the same code. Only Issue in iOS device. System Information- OS - Sequoia 15.1 Safari - 18. iOS Simulator - 18.1 Mobile ap
Topic:
Safari & Web
SubTopic:
General
Tags:
My Safari Web Extension got rejected with the following reason: Guideline 4.0 - Design The user is taken to a new Safari window or tab to sign in or register for an account, which provides a poor user experience. Is this right? First of all Design guide line 4.0 does not seem to mention antyhing about this topic. Second, I've seen many, many web extensions that opens a new tab to let you sign in or register. Including top recommended ones like Grammarly, PayPal Honey and Pocket. The review also mentions: It is acceptable to take users to the default web browser for some sign in or account registration options if ASWebAuthenticationSession is used for the session. That does not seem right either, since that is primarily designed for native apps. I'm pretty sure the extensions I've tried that open a tab for authentication does not use that. It is like my Safari Web Extension is being reviewed like a Mac OS app. What am I'm doing wrong?
I claim that I paid the enrollment to the developer program and have the validated Apple ID emails for a long time.Whenever I try to download a beta, the site will refer me to the validation page of the mail.I emptied the browser cache and deleted cookies, I also tried it from another mac.Does anyone know how I can solve it?Thanks so much
I don't know this might be related or not. But similar problems has occurred here: https://forums.developer.apple.com/forums/thread/764279. Not through Cookie API, fetch() API also can't include cookie which is possible in macOS 17.
Topic:
Safari & Web
SubTopic:
General
Tags:
I have a sample HTML form that follows the password auto-fill requirements. When navigating to the web page without the app, using the built-in Safari app, the native Password AutoFill dialogs for the login and signup forms correctly show:However, when viewed within the app, the same flow does not trigger the dialog in neither the login or signup submission. It simply dismisses the login/signup screen without any error.This is how my view controller looks like:class ViewController: UIViewController { @IBAction func didTapLoginButton() { let session = ASWebAuthenticationSession( url: URL(string: https://example.com/login.html)!, callbackURLScheme: customscheme) { print($0, $1) } session.prefersEphemeralWebBrowserSession = true session.presentationContextProvider = self session.start() } } extension ViewController: ASWebAuthenticationPresentationContextProviding { func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor { view.window! } }Is there a way to
I've been battling this same issue for at least 6 months now on an M2 Macbook Air (Model # MLXW3X/A). It doesn't seem to be a local disk space error, nor a RAM usage issue. Sometimes it seems like clearing browsing data (browser cache and cookies) seems to help, but it isn't a consistent fix.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
The same issue applies here. I have already submitted feedback with code and steps to reproduce the bug. FB15232764 (Safari web extension unable to use browser.cookies.get() to get cookies)
Topic:
Safari & Web
SubTopic:
General
Tags:
Are you running the extension from the debugger? This can open a different Safari window which may not persist the cookies. If you deploy the app to the AppStore and this is still happening, it is surely a bug on our end.
Topic:
Safari & Web
SubTopic:
General
Tags:
Whenever I try to enroll in the Apple Developer Program, I get redirected to an error page saying:Sorry, you can’t enroll at this time.on it. I have tried lots of things - different browsers, signing out/back in, clearing cookies, etc. and nothing works. And yes, I have tried enrolling at other times. 😁
I have been trying for the last 2 weeks to enroll in the developer program, but get an error every time. I've already tried contacting support through email and my case has been bounced around to 3 different people. Is ANYONE else having this problem since I can't get an answer from support, and has anyone been able to resolve this? The support techs reccomended I verify the info on my account, use safari, clear the cache and cookies, and try another computer, yet I still get an error after completing all of these instructions. I really want to get into iOS development and swift, but honestly this whole experience is putting me off contining.This is the error I get