On one of my pages PHPFreeChat works: http://imezru.com/node/906

On another one it doesn't work: http://www.imezru.com/node/906

I get the error: "uncaught exception: Permission denied to call method XMLHttpRequest.open"

I understand that this has to do with calling a script from a certain domain. For security it's not allowed. (And this makes sense.)

But is there a fix for it? Any way to tell the script to auto-detect from the URL? I realize that one could use mod_rewrite and have it always go to the non-www site, but that's not ideal.

Comments

owahab’s picture

Status: Active » Closed (won't fix)

Simply this has nothing to do with phpfreechat:
www.example.com and example.com are two different FQDN, so you need to force either this or that in your .htaccess.

jonahan’s picture

Awesome, thank you!

However, this is one of my major gripes with the Drupal community: this was such a simple thing that it only needed to be addressed in the readme file.

However, in many Drupal modules, I can find little to no info as to how to use the module or other simple information such as this.