Allow scripts on URL with specific port

Ask for help about NoScript, no registration needed to post
ManuTest

Allow scripts on URL with specific port

Post by ManuTest »

I have a local webserver running on say port 12345.
How do I add a rule to allow scripts on it?

If I add http://127.0.0.1:12345 the port number seems to be stripped and all 127.0.0.1 is allowed, not what I want!
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts on URL with specific port

Post by barbaz »

Testing with my local server (not at 127.0.0.1/localhost), it worked the way you want even though the port number isn't displayed. The port number was in fact accepted, as shown in NoScript Options > Advanced, Debug.

Actually, sometimes it's working and sometimes it's ignoring the port??

There is a NoScript bug here, but I'm not sure what of this is bug.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0
ManuTest

Re: Allow scripts on URL with specific port

Post by ManuTest »

Ah, thanks, you are right, it is just a display problem. Besides that, it works.

It would be better to show the port number in the normal list (non-debug) in the settings as well.
If you have multiple entries, they look the same and you don't know what is what.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Post Reply