jquery - How to override ajax base url? -


i'm developing 2 projects under 1 solution api , web application.

i'm using visual studio 2012 , ports each project different when debugging, e.g. localhost:32335 , localhost:21890, each time need use api need set localhost port.

i come solution set default port example 1337, , in host file set example.com localhost:1337, need use example.com/api/someaction.

what want set base url in ajax don't have retype example.com in code, need type /api/someaction , ajax call use example.com default, not localhost:33181.

start work iis. create different application different domain name , edit hosts file use address. don't use cassini. each application , create application in iis. add binding , , create different domain names in hosts file.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -