$.ajax post方式变成OPTIONS ,报500错误
ajax请求本地没问题,线上就不行:
1. $.ajax post方式变成OPTIONS ,报500错误,
2.Failed to load http://localhost/liuyan: Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response.
3.Uncaught SyntaxError: Unexpected token u in JSON at position 0