title: Laravel refusing to display in iFrame as "'X-Frame-Options' to 'SAMEORIGIN'."
body: <p>So I have built a form in Laravel and am hosting externally but I want to display this within a HTML page but am having issues with the X-Frame-Options.</p>
  
  <p>The exact error message is:</p>
  
  <pre><code>Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
  </code></pre>
  
  <p>I have seen on previous StackOverflow answers that this is due to FrameGuard Middleware but this has since been removed and the issue line of code is not in that file.</p>
  
  <p>Laravel Version 5.3.</p>
  
  <p>I have also tried to set the X-Frame-Options in the Nginx config file using the flooring with no result:</p>
  
  <pre><code>sed -i 's/http\ {/http\ {\nadd_header X-Frame-Options SAMEORIGIN, false;\n\n/' /etc/nginx/nginx.conf
  </code></pre>
  
  <p>This error is occurring in multiple browsers, tested: Chrome &amp; Safari</p>