I have this configuration in my nginx :
location ~* ^/test(.*) { add_header "Access-Control-Allow-Origin" $http_origin; add_header "Acc