diff --git a/src/constants.js b/src/constants.js index a46fb3a..e323976 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,6 +1,5 @@ export const HEADERS = { - headers: { 'content-type': 'application/json;charset=UTF-8' }, -}; + headers: { 'content-type': 'application/json;charset=UTF-8', 'Access-Control-Allow-Origin': '*' }, export const RADIO = 'radios'; export const PROGRAM = 'program'; diff --git a/src/handlers/index.js b/src/handlers/index.js index 10818d9..755a79b 100644 --- a/src/handlers/index.js +++ b/src/handlers/index.js @@ -90,6 +90,7 @@ export const index = async (request) => { return new Response(html, { headers: { 'content-type': 'text/html;charset=UTF-8', + 'Access-Control-Allow-Origin': '*', }, }); };