简体   繁体   中英

Is there a difference between Web API and MVC HttpConfiguration?

As an example:

If I was to configure CORS (or whatever) for MVC on a project that contains both MVC and Web API using Http Configuration, would I have to do so twice?

While were at this what about Global Configuration?

yes, you can have Web API and MVC in one project simultaneously. your config includes for both of them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM