title: How to run a PHP file with a different header set
body: <p>So the main file is using hstandard header for CORS, but the next file has an image header.</p>
  <p>I already tried to include, require and shell_exec</p>
  <pre><code> header(&quot;Access-Control-Allow-Origin: *&quot;);
   header(&quot;Access-Control-Allow-Headers: X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding&quot;);
  </code></pre>
  <p>The thing is, I don't have access to the front-end of the app for creating new Axios request. I also can't run CRON because the code needs to be executed every 5 seconds.</p>
  <p>So, the only thing I can do is run the script from a PHP file, but on a separate background.</p>