Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -28,10 +28,7 @@ app.get('*', async (req, res) => {
|
|
28 |
return res.status(405).send('Method Not Allowed');
|
29 |
}
|
30 |
|
31 |
-
|
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', '
|
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) {
|