I have setup a basic Revive Adserver setup. I am getting mixed and unreliable results. (It worked for a little while and then stopped).
This error message is in the javascript console:
A parser-blocking, cross site (i.e. different eTLD+1) script, http://www.[REDACTED].us/ads/www/delivery/spc.php?zones=4&source=&r=52034309&charset=UTF-8&loc=http%3A//, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
I am guessing it is based on CORS or an Apache setup issue. The question is what side?
The debug option on revive shows no data at all.
What I am looking for is an example apache config for the "CLIENT" side website. I am guessing that's where the issue is.
I have tried:
# CORS
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
I am not getting any error messages on either side Apache, or Revive (just no ads). The setup did work once. I have also tried "application/javascript" instead if "text/javascript"