PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 25, 2022

[FIXED] how to make the third party cookies in capacitor project to work for ios

 October 25, 2022     capacitor, cookies, ios     No comments   

Issue

I m working on a capacitor project that uses wkwebview, facing issue in writing cookies with ios, android works fine. Adding this to config file didn't work,

"server": {
    "hostname": "subdomain.example.com"
  }

Please advise me if i m missing out something.


Solution

As of iOS 14, you cannot use 3rd party cookies by default. Add the following lines to your Info.plist file to get better support for cookies on iOS. You can add up to 10 domains.

WKAppBoundDomainswww.mydomain.comapi.mydomain.comwww.myothercooldomain.com

source: https://capacitorjs.com/docs/apis/cookies



Answered By - Merlin B
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing