ajax post 请求报错Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' heade
jquery ajax跨域请求,webapi webconfig配置 前台代码(放了一部分) function CheckIn(roomno) {
$.ajax({
url: ‘https://www..../RoomAssign‘,
type: ‘post‘,
async: false,
contentType: ‘application/json;charset=utf-8‘,
dataT