Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to share that web API to multiple platforms like below method?

HTML
$.ajax({

            type: "POST",

            //url: "http://localhost:63461/api/CarDetails/",

)}
Posted

1 solution

2 ways-
1. WebAPI program should be running while you're trying to access it from another project.
2. Or the best way is, host the WebAPI on IIS.

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900