使用 datajs 发送 odata.read 请求时,我的托管服务提供商不接受“选项”动词。
不起作用:
OPTIONS http://odata.resporter.tv/odata/timelines HTTP/1.1
Accept: */*
Origin: http://*******.***
Access-Control-Request-Method: GET
Access-Control-Request-Headers: accept, maxdataserviceversion
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Host: ****.*******.**
Content-Length: 0
DNT: 1
Connection: Keep-Alive
Pragma: no-cache
作品:
Accept: */*
Origin: http://******.**
Access-Control-Request-Method: GET
Access-Control-Request-Headers: accept, maxdataserviceversion
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Host: ****.********.**
Content-Length: 0
DNT: 1
Connection: Keep-Alive
Pragma: no-cache
请注意请求中的“OPTIONS”标头不起作用。
有人知道我是否不能使用 datajs 发送“选项”标头吗?