Fixed angularjs $resource malfunction
1. remove X-Request-With header
2. encode colon before port number in case of being regarded as url
param begin character.