Last active
March 29, 2018 08:04
-
-
Save toamitkumar/814dbfc9969597a4553dc9d3a6c876c7 to your computer and use it in GitHub Desktop.
Revisions
-
toamitkumar revised this gist
Mar 29, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ location ~ /api/v1/cards/(\w+)/(\w+) { try_files $uri.json } location ~ /api/v1/cards/(\w+)/(\w+)\,(\w+) { if ($request_method = OPTIONS ) { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; -
toamitkumar created this gist
Mar 29, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ location ~ /api/v1/cards/(\w+)/(\w+) { if ($request_method = OPTIONS ) { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Cache-Control,Content-Type,If-Modified-Since'; return 204; } add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Cache-Control,Content-Type,If-Modified-Since'; add_header 'Access-Control-Allow-Headers' 'Content-Type,If-Modified-Since'; add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; add_header 'Content-type' 'application/json'; default_type application/json; try_files $uri.json } location ~ /api/v1/cards/(\w+)/(\w+),(\w+) { if ($request_method = OPTIONS ) { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Cache-Control,Content-Type,If-Modified-Since'; return 204; } add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Cache-Control,Content-Type,If-Modified-Since'; add_header 'Access-Control-Allow-Headers' 'Content-Type,If-Modified-Since'; add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; add_header 'Content-type' 'application/json'; default_type application/json; try_files /usr/share/nginx/html/telkomsel_d8/sites/default/files/assets/cards/$1/$2_$3.json; }