mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-07-25 11:12:06 +00:00
Making changes for cloudflare
This commit is contained in:
+1
-1
@@ -226,7 +226,7 @@ var getHandler = exports.getHandler = function(options, proxy) {
|
||||
};
|
||||
|
||||
return function(req, res) {
|
||||
if(req.headers.referer && req.headers.referer.substring(0,15) !== "http://zoff.no")
|
||||
if(req.headers.referer && req.headers.referer.substring(0,14) !== "http://zoff.no")
|
||||
{
|
||||
res.writeHead(401, "You're accessing the cors-anywhere from wrong domain, only http://zoff.no is allowed");
|
||||
res.end();
|
||||
|
||||
Reference in New Issue
Block a user