tranquan24 commited on
Commit
ac2a68c
·
verified ·
1 Parent(s): 1faa4f6

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -5
index.js CHANGED
@@ -28,10 +28,7 @@ app.get('*', async (req, res) => {
28
  return res.status(405).send('Method Not Allowed');
29
  }
30
 
31
- const referer = req.headers.referer;
32
- if (!referer || !referer.includes('https://tpcloud.rf.gd')) {
33
- return res.status(404).send();
34
- }
35
 
36
  const filename = req.params[0];
37
 
@@ -64,7 +61,7 @@ app.get('*', async (req, res) => {
64
  newResponse.headers.set('Server', 'gvs 1.0');
65
  newResponse.headers.set('Vary', 'Origin');
66
  newResponse.headers.set('X-Content-Type-Options', 'nosniff');
67
- newResponse.headers.set('Access-Control-Allow-Origin', 'https://tpcloud.rf.gd');
68
 
69
  res.send(newResponse);
70
  } catch (err) {
 
28
  return res.status(405).send('Method Not Allowed');
29
  }
30
 
31
+
 
 
 
32
 
33
  const filename = req.params[0];
34
 
 
61
  newResponse.headers.set('Server', 'gvs 1.0');
62
  newResponse.headers.set('Vary', 'Origin');
63
  newResponse.headers.set('X-Content-Type-Options', 'nosniff');
64
+ newResponse.headers.set('Access-Control-Allow-Origin', '*');
65
 
66
  res.send(newResponse);
67
  } catch (err) {