Sakthivel GanesanRank #6,963 · 252 reputationPosted Jun 6, 2017, 4:36 AM EDT
0
CORS stands for Cross Origin Resource Sharing.
Normally, a Web Api can be accessible only with in the same domain. It cannot be accessed outside domain. If you would like to enable your Web API to accessible by other domains, then CORS should be enabled.
For example, let's say, you developed an API and it is deployed on abc.com. So, following methods can be accessible only by the applications that are deployed in abc.com domain. It cannot be accessible from either Microsoft.com or Google.com
Get
Post
Put
Patch
Using CORS, you can enable your Get method to be accessible by either Microsoft.com or Google.com.
0
Khaja MoizuddinRank #270 · 9.4K reputationPosted Jun 17, 2017, 1:35 AM EDT
0
Any more answers for this question
0
Khaja MoizuddinRank #270 · 9.4K reputationPosted Jun 17, 2017, 1:49 AM EDT
0
@ sakthivel ganesan , we will be having http://localhost:50782/... Etc.
The url when we run , then how can we access from other domain , can you explain me with some basic example.
Sakthivel GanesanRank #6,963 · 252 reputationPosted Jun 6, 2017, 4:36 AM EDT
Khaja MoizuddinRank #270 · 9.4K reputationPosted Jun 17, 2017, 1:35 AM EDT
Khaja MoizuddinRank #270 · 9.4K reputationPosted Jun 17, 2017, 1:49 AM EDT
Sakthivel GanesanRank #6,963 · 252 reputationPosted Jun 18, 2017, 8:17 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts