Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

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.

Rohkem teavet

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

  • 5 vastust
  • 2 on selline probleem
  • 2 views
  • Viimati vastas 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

Valitud lahendus

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

Loe vastust kontekstis 👍 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

Valitud lahendus

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

Muudetud cor-el poolt

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.