Move CORS headers from nginx to ipfs
This commit is contained in:
@@ -31,10 +31,6 @@ server {
|
||||
# Increase number of buffers. Default is 8
|
||||
proxy_buffers 1024 8k;
|
||||
proxy_http_version 1.1;
|
||||
# CORS headers for Kredits
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET,POST,PUT';
|
||||
add_header 'Access-Control-Allow-Credentials' 'true';
|
||||
|
||||
location /api/v0/cat {
|
||||
proxy_pass http://_ipfs/api/v0/cat;
|
||||
|
||||
Reference in New Issue
Block a user