Прописал такое.
location / {
root /var/www;
index index.html index.htm;
add_header Access-Control-Expose-Headers "Content-Length, Content-Range, Date, Server, Transfer-Encoding, origin, range, x-goog-meta-foo1";
add_header Access-Control-Allow-Methods "GET, OPTIONS, POST, HEAD, PUT, DELETE";
add_header Access-Control-Allow-Origin "*";
}
Ответ пришёл такой.
HTTP/1.1 200 OK
Server: nginx/1.7.9
Date: Wed, 28 Jan 2015 20:58:00 GMT
Content-Type: text/html
Content-Length: 1754
Last-Modified: Wed, 28 Jan 2015 16:33:41 GMT
Connection: keep-alive
ETag: "54c90f65-6da"
Access-Control-Expose-Headers: Content-Length, Content-Range, Date, Server, Transfer-Encoding, origin, range, x-goog-meta-foo1
Access-Control-Allow-Methods: GET, OPTIONS, POST, HEAD, PUT, DELETE
Access-Control-Allow-Origin: *
Accept-Ranges: bytes
Это нормально ? Или ?