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 { }