ABE blocking last.fm Spotify integration

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: ABE blocking last.fm Spotify integration

Re: ABE blocking last.fm Spotify integration

by barbaz » Sun Oct 11, 2015 5:32 pm

Lej wrote:Which if I understand it correctly means that it accepts all requests to local resources (not just from last.fm as I would want it to).
You understand correctly. As a test, let's see if what you want (taking your quoted statement completely literally) works:
change the SYSTEM rule to

Code: Select all

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL .last.fm
Deny
If it doesn't work there is something else not LOCAL involved here, and without seeing the ABE console message(s) I can't help further, sorry.
(Could they be getting pushed out by other messages, can you increase the scrolback limit of the Browser Console somehow? maybe http://forums.mozillazine.org/viewtopic ... &t=2882867?)

Re: ABE blocking last.fm Spotify integration

by Lej » Sun Oct 11, 2015 5:23 pm

barbaz wrote:Then please post the message(s) from ABE
As far as I can tell there are no messages from ABE (containing "[ABE]") in the Web Console.

However, as mentioned earlier, it works if I disable ABE.
I also noticed that it works if I change SYSTEM from:

Code: Select all

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
Deny
to:

Code: Select all

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept
Which if I understand it correctly means that it accepts all requests to local resources (not just from last.fm as I would want it to).

Re: ABE blocking last.fm Spotify integration

by barbaz » Sun Oct 11, 2015 3:24 pm

Then please post the message(s) from ABE as suggested above, since the messages about the failed CORS request evidently doesn't provide enough information. Thanks

Re: ABE blocking last.fm Spotify integration

by Lej » Sun Oct 11, 2015 8:05 am

barbaz wrote:Hang on... looking again at that console message, see what this does:
NoScript Options > Advanced > ABE > SYSTEM, add at the very top

Code: Select all

Site ^https://[^/:]*\.spotilocal\.com[/:]
Accept from www.last.fm
Did not solve my problem. I pasted the above at the top of SYSTEM ending up with:

Code: Select all

Site ^https://[^/:]*\.spotilocal\.com[/:]
Accept from www.last.fm

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
Deny
Console still gets filled with blocked requests. The request addresses differ slightly depending on what you are trying to do (start, pause, skip, etc). The port also seems random. For example this time I saw a lot of copies of the following but with different port numbers:

Code: Select all

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ciqkfrjwxb.spotilocal.com:4380/service/version.json?service=remote&ref=http%3A%2F%2Fwww.last.fm%2Fhome&cors=. (Reason: CORS request failed). <unknown>

Re: ABE blocking last.fm Spotify integration

by barbaz » Sat Oct 10, 2015 9:17 pm

Hang on... looking again at that console message, see what this does:
NoScript Options > Advanced > ABE > SYSTEM, add at the very top

Code: Select all

Site ^https://[^/:]*\.spotilocal\.com[/:]
Accept from www.last.fm

Re: ABE blocking last.fm Spotify integration

by barbaz » Sat Oct 10, 2015 8:47 pm

That message is not from ABE. Please post here the message in the console starting with "[ABE]".

ABE blocking last.fm Spotify integration

by Lej » Sat Oct 10, 2015 7:42 pm

When ABE is enabled last.fm fails to connect to Spotify (disabling ABE fixes the problem). The Firefox console is filled with messages looking something like:

Code: Select all

21:30:40.631 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://gfcqfnwmey.spotilocal.com:4370/remote/pause.json?pause=true&csrf=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&oauth=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&ref=http%3A%2F%2Fwww.last.fm%2Fhome&cors=. (Reason: CORS request failed).1 <unknown>
I think spotilocal.com is my Spotify client's API (it resolves to 127.0.0.1).

How can I configure ABE to allow last.fm to connect to Spotify?

Top