Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Sep 2016, 12:50
Eunos Eunos is offline
 
Join Date: Sep 2003
Need help with vBulletin external.php integration

I've been using the external feed with type Javascript for years to embed a feed onto the front page of my site. However, things have recently changed. For security, Apache is set to include the following header:
Header set X-Content-Type-Options nosniff

This works fine for Safari and Firefox, but Google Chrome now enforces strict mime types. In Chrome, it throws the following error:
Refused to execute script from 'http://forum.miata.net/vb/external.php?type=js&forumids=82' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

What other options do I have to get the feed to work in Chrome? I know I can set the feed to XML or RSS, but I don't know how to implement it in Javascript.

Here's my current code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Here's a test page: http://www.miata.net/test.html

The test page works with Safari and Firefox,but not with Chrome.
Any suggestions on how to get a feed to work with Chrome?

--------------- Added 24 Sep 2016 at 13:19 ---------------

I found a temporary workaround, which is to put a <filesMatch> directive in Apache so the nosniff header doesn't get sent for external.php. Maybe this is fine as a permanent workaround, but I'd still be interested in knowing if there's a cleaner way.

TIA
Reply With Quote
  #2  
Old 25 Sep 2016, 08:05
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Your test works fine for me in chrome?..
Image removed..

Last edited by WEBDosser; 25 Sep 2016 at 14:15.
Reply With Quote
  #3  
Old 25 Sep 2016, 14:02
Eunos Eunos is offline
 
Join Date: Sep 2003
Yes, because I found a workaround which I described in the edit to my post. Thanks for looking though!
Reply With Quote
  #4  
Old 25 Sep 2016, 14:15
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
d!oh silly me.. didn't read that far, had only just got out of bed.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:53.

Layout Options | Width: Wide Color: