chore: [SDK-4759] remediate Angular XSRF advisory#28
Merged
Conversation
nan-li
approved these changes
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Update the Angular Capacitor 7 demo to a patched Angular 19 release line and migrate its iOS dependencies from CocoaPods to SPM.
Details
Motivation
Angular's HttpClient XSRF protection advisory is patched in Angular 19.2.16 and later. The Capacitor 7 Angular demo was still on Angular 18.x, so this PR moves the demo dependencies onto the patched Angular 19 line.
The same demo was also still using CocoaPods for iOS dependencies. Migrating it to SPM keeps the Capacitor 7 demo aligned with the non-pods iOS dependency flow used by the main demo.
Scope
This change is limited to
examples/demo_cap7:zone.jspeer.CapApp-SPMpackage.Podfileand CocoaPods workspace metadata.The plugin source, public API, Android project, and non-Angular demos are not changed.
Testing
Unit testing
No unit tests were added because this is a dependency and native project configuration remediation for an example app and does not change plugin behavior.
Manual testing
cd examples/demo_cap7 && bun installcd examples/demo_cap7 && bun run buildxcodebuild -resolvePackageDependencies -project ios/App/App.xcodeproj -scheme Appxcodebuild -project ios/App/App.xcodeproj -scheme App -configuration Debug -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO buildvp run ios --target 25255953-BD0C-4557-97C0-1414545FE510vp installvp checkvp testvp packexamples/demo_cap7for AngularHttpClient/XSRF usage and protocol-relative request URLs; none were found.examples/demo_cap7for leftover CocoaPods references; none were found.Affected code checklist
Checklist
Overview
Testing
Final pass
Made with Cursor