Cordova-plugin-wkwebview-inject-cookie not working when switch to capacitor

I am using cordova-plugin-wkwebview-inject-cookie plugin and it works fine in cordova but after I switch to capacitor it doesn’t seem to work even though I still see this added to config.xml in ios app folder. What am I missing, thanks!

<feature name="WKWebViewInjectCookie">
        <param name="ios-package" value="WKWebViewInjectCookie" />
</feature>

Have you set your App Bound Domains? On newer versions of iOS/XCode, you need to set them to allow reading/writing to and from cookies in iOS. You add each domain in the “WKAppBoundDomains” section of your Info.plist file for your XCode project. XCode 12+ started enforcing this more strictly so maybe that could be your issue!

Alternatively, maybe you could try using the Capacitor-Community HTTP Plugin? It has functions for reading cookies from the WKHttpCookieStore similar to how WKWebViewInjectCookie does.