2 thoughts on “Referer header is not passing to request

  1. edit RNCWebViewManager.java like this

    @override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    if (url.contains(“https://wx.tenpay.com“)){
    Map<String,String> map=new HashMap<String, String>();
    map.put(“Referer”, “https://www.reactnative.com“);
    view.loadUrl(url,map);
    return true;
    }
    dispatchEvent(
    view,
    new TopShouldStartLoadWithRequestEvent(
    view.getId(),
    createWebViewEvent(view, url)));
    return true;
    }

  2. Pingback: 메이저놀이터