Cors 跨域Access-Control-Allow-Origin

 

1.Access-Control-Allow-Origin 指定格式

The Origin header field has the following syntax:

origin              = "Origin:" OWS origin-list-or-null OWS
origin-list-or-null = %x6E %x75 %x6C %x6C / origin-list
origin-list         = serialized-origin *( SP serialized-origin )
serialized-origin   = scheme "://" host [ ":" port ]
                   ; <scheme>, <host>, <port> from RFC 3986
origin              = "Origin:" OWS origin-list-or-null OWS
origin-list-or-null = %x6E %x75 %x6C %x6C / origin-list
origin-list         = serialized-origin *( SP serialized-origin )
serialized-origin   = scheme "://" host [ ":" port ]

 

 

 

 

相关资料:http://tools.ietf.org/html/rfc6454#section-7.1

 https://code.msdn.microsoft.com/Cross-Origin-resource-192e7b8c/sourcecode?fileId=79100&pathId=905269383

你可能感兴趣的:(Cors 跨域Access-Control-Allow-Origin)