Skip to content

v0.4.3

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 16:57
· 2 commits to main since this release

iOS: cookies are kept on recorded requests

With automatic capture on, recorded URLSession requests now behave like the app's own requests when it comes to cookies (#12).

Until 0.4.2, the capture sent each request again through its own session. Cookies from HTTPCookieStorage.shared were not sent, and cookies set by the response, or by a redirect, were not stored. Logins that rely on a session cookie stopped working while StackAudit was on.

Now the capture:

  • sends the stored cookies for the request URL
  • stores the cookies set by responses and redirects
  • leaves alone requests that set httpShouldHandleCookies = false or send their own Cookie header

The headers shown in the viewer are the ones actually sent, with the Cookie value masked.

Known limits: the app's own redirect delegate is still not called for recorded requests, and cookies kept in a custom HTTPCookieStorage (instead of .shared) are not used.

Android, KMP and the Ktor plugin are not affected.

Other changes

  • The iOS CI runs on macOS 26, and WebSocket tests time out instead of hanging.
  • README: Swift Package Index badges.

Install

debugImplementation("io.github.r1b2ns:stackaudit-android:0.4.3")
debugImplementation("io.github.r1b2ns:stackaudit-ui:0.4.3")
releaseImplementation("io.github.r1b2ns:stackaudit-noop:0.4.3")
.package(url: "https://github.com/r1b2ns/stack-audit", from: "0.4.3")
flutter pub add stack_audit

Full Changelog: v0.4.2...v0.4.3