Skip to content

Commit cdc50cf

Browse files
committed
Update cors.js
1 parent abc5b85 commit cdc50cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/cors.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export default async function handler(request, response) {
1212

1313
return new Promise(resolve => {
1414

15-
const req = https.get(url, (resp) => {
15+
const req = https.get({
16+
url: url, headers: {
17+
accept: 'application/json'
18+
}}, (resp) => {
1619

1720
let data = '';
1821

0 commit comments

Comments
 (0)