css modify content type
parent
54ff19dcec
commit
86633d3862
|
@ -29,7 +29,6 @@ server {
|
|||
add_header Access-Control-Allow-Origin '*' always;
|
||||
add_header Access-Control-Allow-Methods 'POST, GET, OPTIONS' always;
|
||||
add_header Access-Control-Allow-Headers 'Cache-Control,Content-Type,x-api-authorization,x-api-user-token' always;
|
||||
add_header Content-Type 'application/json' always;
|
||||
add_header X-Content-Type-Options: 'nosniff' always;
|
||||
|
||||
if ($request_method = OPTIONS) {
|
||||
|
@ -38,6 +37,11 @@ server {
|
|||
|
||||
root /usr/share/r3-server/beta/api.r3js.org/webroot;
|
||||
|
||||
location ~ ^.*\.css$ {
|
||||
add_header Content-Type 'text/css' always;
|
||||
try_files $uri $uri/ @node;
|
||||
}
|
||||
|
||||
location ~ {
|
||||
try_files $uri $uri/ @node;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue