Page 1 of 1

[Solved] Allow scripts on hostname not working

Posted: Sun May 07, 2017 12:27 pm
by gewe
Hello,

I am using NoScript version 5.0.4rc2 on Firefox 53.0 on Linux Mint 18.1, 64 bit.

In my local network I have a Raspberry Pi, running a webserver. I can access the Pi with the domain name pi1, in an URL like http://pi1:88/index.html.
That page contains scripts, which are blocked by NoScript. I then select "Allow http://pi1" from the menu, but the scipts are still blocked. There are no scripts from other domains in the web page, and the NoScript menu does not show other domains to be permanently or temporarily allowed.
I then removed http://pi1 from the list of allowed sites, and manually added pi1 to the list. The scripts are still blocked.
Using the IP-address instead of the hostname, and adding the IP-address to the allowd list also doesn't work.
The only way to get the page to load with scripts, is to set NoScript to allow all scripts, making the use of NoScript useless.

How can I enable the scripts based on a hostname?

Regards,
Ge

Re: Allow scripts on hostname not working

Posted: Sun May 07, 2017 3:45 pm
by barbaz
I think you need to include the port. Try manually adding this in NoScript Options > Whitelist

Code: Select all

http://pi1:88
IIRC there was a discussion about menu entries missing the port a while back, I'll try to dig it up later.

EDIT
I think it was this - viewtopic.php?f=7&t=22392

Re: Allow scripts on hostname not working

Posted: Sun May 07, 2017 5:12 pm
by gewe
Why didn't I think of that? :oops:

Great that some problems can be solved so easily. Many thanks!

Regards,
Ge

Re: [Solved] Allow scripts on hostname not working

Posted: Sun May 07, 2017 5:14 pm
by barbaz
You're welcome! Image