NetworkManager and PAC script not working

At work I connect my computer with an Ethernet cable. To reach the internet I need to use a .pac script. The script works if I configure it manually in firefox but does not work when I configure it in NetworkManager. What am I missing?