Skip to content

Commit f587c68

Browse files
committed
fix(cors): await the fetch
1 parent 0d41555 commit f587c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function isDomainkeyValid(domain, key) {
5454
const beurl = new URL(`https://rum.fastly-aem.page/domains/${domain}`);
5555
beurl.searchParams.set('domainkey', key);
5656

57-
const beresp = fetch(beurl, {
57+
const beresp = await fetch(beurl, {
5858
cf: {
5959
// keep the auth in cache for 10 minutes
6060
cacheTtl: 600,

0 commit comments

Comments
 (0)