|
|
|
@ -18,6 +18,11 @@ namespace CorsServer.WebApi31.Controllers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPut]
|
|
|
|
|
[HttpHead]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[HttpDelete]
|
|
|
|
|
[HttpPatch]
|
|
|
|
|
[HttpOptions]
|
|
|
|
|
public IActionResult Ping()
|
|
|
|
|
{
|
|
|
|
@ -27,6 +32,11 @@ namespace CorsServer.WebApi31.Controllers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPut]
|
|
|
|
|
[HttpHead]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[HttpDelete]
|
|
|
|
|
[HttpPatch]
|
|
|
|
|
[HttpOptions]
|
|
|
|
|
[EnableCors(CorsPolicyNameConst.DefaultPolicyName)]
|
|
|
|
|
public IActionResult HasCors()
|
|
|
|
@ -36,7 +46,13 @@ namespace CorsServer.WebApi31.Controllers
|
|
|
|
|
return Ok(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPut]
|
|
|
|
|
[HttpHead]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[HttpDelete]
|
|
|
|
|
[HttpPatch]
|
|
|
|
|
[HttpOptions]
|
|
|
|
|
[DisableCors]
|
|
|
|
|
public IActionResult NoCors()
|
|
|
|
|