Skip to content

Commit e0d8436

Browse files
committed
Update cors.js
1 parent fa68fd2 commit e0d8436

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

api/cors.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ export default async function handler(request, response) {
2828

2929
return new Promise(resolve => {
3030

31-
//url = new URL(url);
31+
url = new URL(url);
3232

33-
let options = new URL(url);
33+
let options = {
34+
35+
hostname: 'google.com'
36+
37+
}
3438

35-
options.headers = {
39+
/*options.headers = {
3640
'Content-Type': 'application/json'
3741
};
3842
39-
options.method = 'GET';
43+
options.method = 'GET';*/
4044

4145
const req = https.request(options, (resp) => {
4246

0 commit comments

Comments
 (0)