Skip to content

Commit

Permalink
Avoid sending shared cookie jar cookies to some endpoints (#24018)
Browse files Browse the repository at this point in the history
* Use ephemeral URLSession in WPAuthenticator.WordPressComBlogService

* Update Tracks version

* Update WordPressKit
  • Loading branch information
crazytonyli authored Jan 30, 2025
1 parent fd8ac09 commit a4d0d31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Modules/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let package = Package(
.package(url: "https://github.com/Alamofire/Alamofire", from: "5.9.1"),
.package(url: "https://github.com/AliSoftware/OHHTTPStubs", from: "9.1.0"),
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0"),
.package(url: "https://github.com/Automattic/Automattic-Tracks-iOS", from: "3.4.2"),
.package(url: "https://github.com/Automattic/Automattic-Tracks-iOS", from: "3.5.2"),
.package(url: "https://github.com/Automattic/AutomatticAbout-swift", from: "1.1.5"),
.package(url: "https://github.com/Automattic/Gravatar-SDK-iOS", from: "3.1.1"),
.package(url: "https://github.com/Automattic/Gridicons-iOS", branch: "develop"),
Expand Down
12 changes: 6 additions & 6 deletions WordPress.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "1bb18e6f566af95793ebbf960c90096ab410bb43035e5037d42057ec6deb1f00",
"originHash" : "6b3c7bab8241a2a687e3889dbb08f2b2b5f2035adf279e8a8b88fd75f8c545e4",
"pins" : [
{
"identity" : "alamofire",
Expand All @@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Automattic/Automattic-Tracks-iOS",
"state" : {
"revision" : "948c7642009237c74ef30dad59f03835416873eb",
"version" : "3.4.2"
"revision" : "437f586a62c07c6ceec9baf043237b2afe7ea1ac",
"version" : "3.5.2"
}
},
{
Expand Down Expand Up @@ -265,8 +265,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/getsentry/sentry-cocoa",
"state" : {
"revision" : "08862789e1cbba7a9561bed69832a9306f339cd3",
"version" : "8.29.1"
"revision" : "f45e9c62d7a4d9258ac3cf35a3acf9dbab4481d1",
"version" : "8.43.0"
}
},
{
Expand Down Expand Up @@ -383,7 +383,7 @@
"location" : "https://github.com/wordpress-mobile/WordPressKit-iOS",
"state" : {
"branch" : "wpios-edition",
"revision" : "a9a057ea6fba8080c146497336951dc805409771"
"revision" : "cd1458be33c9715a293b6b5ea1dea851dfb64d05"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class WordPressComBlogService {
private var anonymousAPI: WordPressComRestApi {
let userAgent = WordPressAuthenticator.shared.configuration.userAgent
let baseUrl = WordPressAuthenticator.shared.configuration.wpcomAPIBaseURL
return WordPressComRestApi(oAuthToken: nil, userAgent: userAgent, baseURL: baseUrl)
return WordPressComRestApi(oAuthToken: nil, userAgent: userAgent, baseURL: baseUrl, useEphemeralSession: true)
}

/// Retrieves the WordPressComSiteInfo instance associated to a WordPress.com Site Address.
Expand Down

0 comments on commit a4d0d31

Please sign in to comment.