Jump to content


Photo

WebListener

WebListener Header contenttype

  • Please log in to reply
2 replies to this topic

#1 ChrisM

ChrisM

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 09 January 2020 - 01:48 AM

I have the following error in chrome console 

 

Refused to execute script from 'https://hetfundament...onts=403080244'because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
 
I have placed 
 
header('Content-type: application/javascript');
 
at the top of webListener
 
 
/*
Legacy web tracker. New version: webTracker.php
*/
 
header('Content-type: application/javascript');
 
$url = '';
if(!empty($_SERVER['HTTP_REFERER'])) {
    $referer = parse_url($_SERVER['HTTP_REFERER']);
 
 

is there anything / anywhere else I should be looking to resolve this issue? 

 

Thanks

 

Chris

 

 



#2 alt_f4

alt_f4

    Advanced Member

  • Premium Members
  • PipPipPip
  • 359 posts
  • LocationGermany

Posted 09 January 2020 - 11:59 PM

Do you have CORS Headers enabled on your server(s) or tried "<?php header("content-type: text/javascript");?>"



#3 alt_f4

alt_f4

    Advanced Member

  • Premium Members
  • PipPipPip
  • 359 posts
  • LocationGermany

Posted 13 January 2020 - 03:18 AM

Did you mention http://community.x2c.../?hl=webtracker






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users