Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -12,6 +12,9 @@ app.get('/resize', async (req, res) => {
|
|
12 |
return res.status(400).send('没有提供图像 URL');
|
13 |
}
|
14 |
|
|
|
|
|
|
|
15 |
try {
|
16 |
const response = await fetch(imageUrl);
|
17 |
if (!response.ok) {
|
|
|
12 |
return res.status(400).send('没有提供图像 URL');
|
13 |
}
|
14 |
|
15 |
+
console.log('原始图像URL:', imageUrl);
|
16 |
+
console.log('访问来源站点:', req.headers.referer || '直接访问');
|
17 |
+
|
18 |
try {
|
19 |
const response = await fetch(imageUrl);
|
20 |
if (!response.ok) {
|