解决Nginx跨域问题
以下代码放入伪静态 location / { if ( $request_method = ‘OPTIONS’ ) { add_header access-control-allow-headers range; add_header access-control-allow-methods GET,POST,HEAD,OPTIONS; add_header access-control-allow-or...
以下代码放入伪静态 location / { if ( $request_method = ‘OPTIONS’ ) { add_header access-control-allow-headers range; add_header access-control-allow-methods GET,POST,HEAD,OPTIONS; add_header access-control-allow-or...