Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

my javascript or my website breaks under Firefox 20 and latest release and works well with chrome and IE, what is the problem?

  • 5 replies
  • 2 have this problem
  • 2 views
  • Last reply by cor-el

more options

Hi, my website cannot load many thing in firefox 20. My search ajax breaks, it only work for the first time you visit and it disappeared forever after that. Lots of things happen. But its all working fine in IE and Chrome. This is so embarrassing to me. You can view my site at http://www.apasaja.biz

Hi, my website cannot load many thing in firefox 20. My search ajax breaks, it only work for the first time you visit and it disappeared forever after that. Lots of things happen. But its all working fine in IE and Chrome. This is so embarrassing to me. You can view my site at http://www.apasaja.biz

Chosen solution

There are CSP (Content Security Policy) warnings in the error log that show that Firefox isn't loading the scripts.
So, you need to look into this.

  • x-content-security-policy:allow 'self'; options inline-script; im$
CSP WARN:  allow directive is deprecated, use the equivalent default-source directive instead
CSP WARN:  Couldn't process unknown directive 'im$'

CSP WARN:  Directive default-src https://www.apasaja.biz:443 violated by https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
CSP WARN:  Directive default-src https://www.apasaja.biz:443 violated by https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js
CSP WARN:  Directive default-src https://www.apasaja.biz:443 violated by https://secure.comodo.net/trustlogo/javascript/cot.js

Read this answer in context 👍 1

All Replies (5)

more options

Can you give some more precise steps to produce this problem?

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

more options

Hi, first time you log in to my website you will notice that the search button is on top of the site rite? click it once, then try to navigate to any other page. After that, try to click the search button again,

second, first time you went to my site, you will notice about comodo trust seal on the right corner of the site. Navigate to another page and see where is the trust logo again. I have cleared every things in order to view the search button and the trust logo, but then i went back to the same state. tested on few pc with ff20.

more options

Chosen Solution

There are CSP (Content Security Policy) warnings in the error log that show that Firefox isn't loading the scripts.
So, you need to look into this.

  • x-content-security-policy:allow 'self'; options inline-script; im$
CSP WARN:  allow directive is deprecated, use the equivalent default-source directive instead
CSP WARN:  Couldn't process unknown directive 'im$'

CSP WARN:  Directive default-src https://www.apasaja.biz:443 violated by https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
CSP WARN:  Directive default-src https://www.apasaja.biz:443 violated by https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js
CSP WARN:  Directive default-src https://www.apasaja.biz:443 violated by https://secure.comodo.net/trustlogo/javascript/cot.js

Modified by cor-el

more options

thanks, it looks like my vhost csp is screwed up. thanks again, this is now solve

more options

You're welcome.

Yes, I see that it is working now.