Tag: 白名单

不添加域名,白名单域名facebook messenger扩展名

我一直试图按照Facebook给出的说明将我的域列入白名单,但没有任何工作。 我第一次尝试curl,响应是{result:"success"}但是当我尝试列出被列入白名单的域时,我得到{data:[]} 然后我尝试使用节点请求模块如下: request.post("https://graph.facebook.com/v2.6/me/messenger_profile?access_token=sfdlksdfu79r9429049824982342348sjdfsf", { "setting_type": "domain_whitelisting", "whitelisted_domains": ["https://mydomainw.com", "https://mydomainw.com/profile", "https://sfujyx.com/ofr", "mydomain1.com", "mydomain.com"], "domain_action_type": "add"}, function (err, res, body) { console.log("Whitelisting domain"); if (!err) { console.log(body); console.log("Showing the list of whitelisted:"); request.get("https://graph.facebook.com/v2.6/me/messenger_profile?fields=whitelisted_domains&access_token=sfdlksdfu79r9429049824982342348sjdfsf", function (err, res, body) { if (!err) { console.log(body); } else { console.log(err); } }); } else { console.log(err); } }); 它仍然带来与curl相同的结果: 而当我使用FacebookgraphicsAPI的资源pipe理器工具,这是我得到的错误: […]

白名单与nodejs文件隐藏源代码

我最近把我的错误日志与getsentry.com集成在一起 。 现在我的问题是,我不得不生成一个源地图,所以基本上任何人用现代浏览器现在可以看到我的原代码完全评论。 我正在寻找一种方法来允许访问源映射文件只有特定的ips和/或nodejs的子网,因为我使用的是heroku。 我想它会涉及使用像https://www.npmjs.org/package/express-ipfilter或https://www.npmjs.org/package/ip 。 但是仍然想着如何创build一个“路由”到文件并评估ips的中间环节