I am trying to setup this application on my server openspeedtest.com self-hosted app they provided Nginx configuration. how can i make this work on my apache shared hosting server?
fastcgi_read_timeout 360;
client_max_body_size 2000M;
location / {
if ($http_origin) {
add_header 'Access-Control-Allow-Origin' 'http://ift.tt/1n0OH3l';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
}
if ($request_method = OPTIONS ) {
add_header Access-Control-Allow-Credentials "true";
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With';
add_header Access-Control-Allow-Origin "http://ift.tt/1n0OH3l";
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
return 204;
}
}
Aucun commentaire:
Enregistrer un commentaire