title: Allow permit to cross-origin framing in PHP
body: <p>I have following view </p>
  
  <p><a href="https://i.stack.imgur.com/9FIVz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9FIVz.jpg" alt="Page on honor.es showing the error"></a></p>
  
  <p>Check out the <a href="http://ab-flyers.honor.es/sample.html" rel="nofollow noreferrer">sample page</a>.</p>
  
  <p>Once I click <em>Open Popup Editor</em> I'm not getting the the results, it's showing it's still loading but never finishes.</p>
  
  <p>Then I checked this using Firebug and I saw the following error:</p>
  
  <blockquote>
    <p>Load denied by X-Frame-Options: <a href="https://www.picozu.com/editor/?i=aHR0cDovL2FiLWZseWVycy5ob25vci5lcy9EZXNlcnQuanBn&amp;key=A7lwl9MYGLNfVL7x&amp;theme=galaxy&amp;workspace=2" rel="nofollow noreferrer">https://www.picozu.com/editor/?i=aHR0cDovL2FiLWZseWVycy5ob25vci5lcy9EZXNlcnQuanBn&amp;key=A7lwl9MYGLNfVL7x&amp;theme=galaxy&amp;workspace=2</a> does not permit cross-origin framing.</p>
  </blockquote>
  
  <p>Here's a screenshot of the error:</p>
  
  <p><a href="https://i.stack.imgur.com/IjBr1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IjBr1.jpg" alt="Cross-origin error shown in Firebug&#39;s console"></a></p>
  
  <p>I tried to solve this by turning the HTML page into a PHP script and adding this code:</p>
  
  <pre><code>&lt;?php header('Access-Control-Allow-Origin: *'); ?&gt;
  </code></pre>
  
  <p>So this is the that PHP file </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;?php header('Access-Control-Allow-Origin: *'); ?&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;Brochure_Dashboard&lt;/title&gt;
  
      &lt;script src="js/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.classypicozu.min.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/jquery.classypicozu.min.css" /&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div&gt; 
        &lt;button class="picozu"&gt;Open Popup Editor&lt;/button&gt;
        &lt;script type="text/javascript"&gt;                                    
        $('.picozu').ClassyPicozu({
          key: 'A7lwl9MYGLNfVL7x',
          image: 'http://ab-flyers.honor.es/Desert.jpg',
          width: 900,
          height: 600,
          theme: 'galaxy',
          workspace: 2
        });
        &lt;/script&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But the error is still the same. You can <a href="http://ab-flyers.honor.es/test.php" rel="nofollow noreferrer">try it out yourself</a>.</p>
  
  <p>I just to want to know, is there any problem with my PHP file or how can I correct this error?</p>