tranquan24 commited on
Commit
7766270
·
verified ·
1 Parent(s): d7e1d6b

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -3
index.js CHANGED
@@ -39,8 +39,7 @@ app.get('/', async (req, res) => {
39
 
40
  headers_dict['X-Speed'] = 'Fast';
41
  headers_dict['X-Bandwidth'] = 'High';
42
- headers_dict['Access-Control-Allow-Origin'] = '*';
43
-
44
  if (filename) {
45
  headers_dict['Content-Disposition'] = `attachment; filename="${filename}"`;
46
  } else {
@@ -67,7 +66,7 @@ app.get('/', async (req, res) => {
67
  newResponse.headers.set('Server', 'gvs 1.0');
68
  newResponse.headers.set('Vary', 'Origin');
69
  newResponse.headers.set('X-Content-Type-Options', 'nosniff');
70
- newResponse.headers.set('Access-Control-Allow-Origin', 'https://tpcloud.rf.gd');
71
 
72
  res.writeHead(newResponse.status, newResponse.headers);
73
  newResponse.body.pipe(res);
 
39
 
40
  headers_dict['X-Speed'] = 'Fast';
41
  headers_dict['X-Bandwidth'] = 'High';
42
+
 
43
  if (filename) {
44
  headers_dict['Content-Disposition'] = `attachment; filename="${filename}"`;
45
  } else {
 
66
  newResponse.headers.set('Server', 'gvs 1.0');
67
  newResponse.headers.set('Vary', 'Origin');
68
  newResponse.headers.set('X-Content-Type-Options', 'nosniff');
69
+ newResponse.headers.set('Access-Control-Allow-Origin', '*');
70
 
71
  res.writeHead(newResponse.status, newResponse.headers);
72
  newResponse.body.pipe(res);