You are viewing a single comment's thread from:

RE: So... none of the writable public IPFS gateways are setting their CORS headers....

in #ipfs8 years ago

Yay!

I can now read the ipfs-hash header!

Simple servlet proxy added to project:


package proxy;

import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;

import org.mitre.dsmiley.httpproxy.ProxyServlet;

@WebServlet(initParams = { //
@WebInitParam(name = "targetUri", value = "https://GATEWAY/ipfs"), //
@WebInitParam(name = ProxyServlet.P_LOG, value = "true"), //
@WebInitParam(name = ProxyServlet.P_HANDLEREDIRECTS, value = "true"),
@WebInitParam(name = ProxyServlet.P_PRESERVECOOKIES, value="true"),
@WebInitParam(name = ProxyServlet.P_PRESERVEHOST, value="false")//
}, loadOnStartup = 1, urlPatterns = "/ipfs/*")
@SuppressWarnings("serial")
public class Proxy extends ProxyServlet {
}

Coin Marketplace

STEEM 0.08
TRX 0.30
JST 0.035
BTC 110051.81
ETH 3856.01
USDT 1.00
SBD 0.53