我试图在WCF Restful服务中处理CORS。经过大量的谷歌搜索,我仍然找不到解决方案。我已经附上了下面的提琴手结果。我在这里缺少什么标题。
Request Headers
OPTIONS /EconomicAtlas/dp/e96b1857-e5c7-40b1-af30-502f450d1b06 HTTP/1.1
Host: localhost:8089
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Origin: http://localhost
Access-Control-Request-Method: GET
Access-Control-Request-Headers: authorization,content-type
Connection: keep-alive
Response Headers
HTTP/1.1 405 Method Not Allowed
Allow: GET
Content-Length: 1565
Content-Type: text/html; charset=UTF-8
Server: Microsoft-HTTPAPI/2.0
Access-Control-Allow-Headers: Accept, Content-Type, Authorization
Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Date: Sun, 18 Oct 2015 08:41:21 GMT