Chat on Chrome fails when not accessed via piratebox.lan

Posted by stylesuxx 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Chat on Chrome fails when not accessed via piratebox.lan
January 29, 2016 12:49PM
When accessing the piratebox with Chrome and another URL than piratebox.lan I get an AJAX error =>

XMLHttpRequest cannot load [www.foo.com]. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '[foo.com&]; is therefore not allowed access.

This should be fixed by allowing all origins with lighttpd:
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
Re: Chat on Chrome fails when not accessed via piratebox.lan
January 31, 2016 09:55AM
stylesuxx. Strange! NEVER saw this before, on which kind of PirateBox did you encounter this? Your latest RPi + PirateBox version ? Need more info sad smiley
Re: Chat on Chrome fails when not accessed via piratebox.lan
January 31, 2016 10:48AM
i just tested this with www.google.com, www.hotmail.com. www.piratebay.ca and even www.foo.bar. I didnt have issues.
I only get the ajax error if I switch back to my regular AP and not PirateBox.

Here
Re: Chat on Chrome fails when not accessed via piratebox.lan
January 31, 2016 11:53AM
It was with the Glinet Router, I just tried it out again,.... I still get that error, but here is the kicker: I only get it for foo.com, not if I use example.com or any other Domain,....