[ANNOUNCE] nginx_cross_origin_module - support cross origin resource sharing protocol in Nginx
姚伟斌
nbubingo at gmail.com
Tue Nov 29 08:35:48 UTC 2011
Hi, folks,
I'm pleased to release the nginx_cross_origin_module.
This module can process the cross-origin resource sharing Javascript
request with this protocol (<http://www.w3.org/TR/cors/>). This module
follows the protocol version of 20100727.
The project site: https://github.com/yaoweibin/nginx_cross_origin_module
Synopsis
a simple example:
http {
cors on;
cors_max_age 3600;
cors_origin_list unbounded;
cors_method_list GET HEAD PUT POST;
cors_header_list unbounded;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
}
}
More information about the nginx
mailing list