Skip to content

Commit df2d32f

Browse files
committed
Update cors.js
1 parent 3e2b4aa commit df2d32f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

api/cors.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export default async function handler(request, response) {
1616

1717
});
1818

19-
console.log(url);
20-
2119

2220
const {status, data} = await getRequest(url);
2321

@@ -28,20 +26,6 @@ export default async function handler(request, response) {
2826

2927
return new Promise(resolve => {
3028

31-
//url = new URL(url);
32-
33-
let options = {
34-
35-
hostname: 'google.com'
36-
37-
}
38-
39-
/*options.headers = {
40-
'Content-Type': 'application/json'
41-
};
42-
43-
options.method = 'GET';*/
44-
4529
const req = https.get(url, (resp) => {
4630

4731
let data = '';

0 commit comments

Comments
 (0)