title: Prevent Chrome from disabling cookies in iframe
body: <p>I have a page (runs on Tomcat) that needs to be displayed in iframe by other sites. This page's work depends on Javascript and cookies. It can also detects whether Javascript and cookies are enabled in the browser. I have the following html snippet in a test page (runs on Apache web server) showing the page in iframe</p>
  <pre><code>&lt;div id=&quot;embedded-page&quot;&gt;
  &lt;iframe referrerpolicy=&quot;no-referrer-when-downgrade&quot; src=&quot;_link_to_the_page_on_Tomcat&quot;&gt;
  ...
  the page is displayedd in iframe
  ....
  &lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I use the above html in my tests. The page can be displayed correctly in FF, Edge, Brave and other browsers. Howeve, in Chrome, the page reports that cookies are not supported.</p>
  <p>The page to display runs on Tomcat and is part of a Spring MVC website plus Spring Security. For Spring Security, I have the following setup:</p>
  <pre><code>&lt;security:headers disabled=&quot;true&quot;/&gt; 
  </code></pre>
  <p>how to prevent Chrome from disabling cookies in iframe?</p>