title: Error : Resource interpreted as Document but transferred with MIME type application/json:
body: <p>I get the following error when sending 3 views by JSON</p>
  
  <pre><code>function BuscarOTPorId(){
  
          if('&lt;?=$this-&gt;uri-&gt;segment(3);?&gt;'){
              $.ajax({
                  type: "POST",
                  url: "&lt;?= base_url()?&gt;AgregarOTController/BuscarOTPorId/"+'&lt;?=$this-&gt;uri-&gt;segment(3);?&gt;',
                  data: "",
                  success: function(objView){
  
                  }    
              });
  
      }
  }
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function BuscarOTPorId(){
      $id_ot        =$this-&gt;uri-&gt;segment('3');
      $getOT        =$this-&gt;MainModel-&gt;BuscarOTPorId($id_ot);
  
      $data = array();
      $toJson = array(
      'success' =&gt; 'true',
      'ViewSet' =&gt; array(),
      'getOT'=&gt;$getOT
      );
      $toJson['ViewSet']['header']    = $this-&gt;load-&gt;view('Header/header', $data, true);
      $toJson['ViewSet']['leftpanel'] = $this-&gt;load-&gt;view('leftpanel/leftpanel', $data, true);
      $toJson['ViewSet']['create']    = $this-&gt;load-&gt;view('OT/AgregarOT2', $data, true);
  
      $this-&gt;output
          -&gt;set_content_type('application/json')
          -&gt;set_output(json_encode($toJson));
  }
  </code></pre>
  
  <p>Error Console Chrome</p>
  
  <blockquote>
    <p>Resource interpreted as Document but transferred with MIME type application/json: "<a href="http://localhost/AgregarOTController/BuscarOTPorId/99" rel="nofollow noreferrer">http://localhost/AgregarOTController/BuscarOTPorId/99</a>".</p>
  </blockquote>