<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pasha Korvalev</title>
    <description>The latest articles on DEV Community by Pasha Korvalev (@korvalev234234).</description>
    <link>https://dev.to/korvalev234234</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1222662%2Fab9bbbf1-ffa7-4007-b066-4fe6afce9248.png</url>
      <title>DEV Community: Pasha Korvalev</title>
      <link>https://dev.to/korvalev234234</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/korvalev234234"/>
    <language>en</language>
    <item>
      <title>How to set server-side cookie to iframe on iphone or ipad?</title>
      <dc:creator>Pasha Korvalev</dc:creator>
      <pubDate>Thu, 30 Nov 2023 10:02:06 +0000</pubDate>
      <link>https://dev.to/korvalev234234/how-to-set-server-side-cookie-to-iframe-on-iphone-or-ipad-3omd</link>
      <guid>https://dev.to/korvalev234234/how-to-set-server-side-cookie-to-iframe-on-iphone-or-ipad-3omd</guid>
      <description>&lt;p&gt;I developed web game. But while integrating this game inside iframe in other websites, setting server-side cookie not working on only iphone or ipad devices. When it launch game url, the sever set cookies using response header. But it is not working.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;res.cookie("token", token, {
  path: "/",
  httpOnly: true,
  overwrite: true,
  sameSite: "None",
  secure: true,
});
res.cookie("lang", user.lang, {
  overwrite: true,
  sameSite: "None",
  secure: true,
});
res.cookie("locale", locale[user.lang], {
  overwrite: true,
  sameSite: "None",
  secure: true,
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All the browsers are working on all devices except iphone or iframe. Even if the device is iphone or ipad, they are working when I do not use iframe. How to fix it?&lt;/p&gt;

</description>
      <category>cookie</category>
      <category>iframe</category>
      <category>iphone</category>
      <category>ipad</category>
    </item>
  </channel>
</rss>
