diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6dc9f6865f52d329b7eefd6c7f9abfe4963a4bd9..f5a71dd8c72a0ca9f919495140eb7db9c59083de 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -191,8 +191,8 @@ document.addEventListener("DOMContentLoaded", function() {
   var getJSON = function(url, callback) {
       var xhr = new XMLHttpRequest();
       xhr.open('GET', url, false);
-      xhr.setRequestHeader("Accept", 'application/json');
-      xhr.setRequestHeader("Access-Control-Allow-Origin", '*');
+      xhr.setRequestHeader("content-type", "application/json");
+      xhr.setRequestHeader("Accept", "application/json");
       xhr.send();
       return xhr.response
   };
diff --git a/vercel.json b/vercel.json
index 0fd58817a7b9e8cedde7dc3115cc585c02c5b1af..28ba32f393b661897fdf7316f54a10ab5482d222 100644
--- a/vercel.json
+++ b/vercel.json
@@ -106,12 +106,23 @@
   },
   "headers": [
     {
-      "source": ".*",
+      "source": "(.*)",
       "headers": [
-        {
-          "key": "Access-Control-Allow-Origin",
-          "value": "*"
-        }
+        { "key": "Access-Control-Allow-Credentials", "value": "true" },
+        { "key": "Access-Control-Allow-Origin", "value": "*" },
+        { "key": "Access-Control-Allow-Methods", "value": "*" },
+        { "key": "Access-Control-Expose-Headers", "value": "*" },
+        { "key": "Access-Control-Expose-Headers", "value": "*" }
+      ]
+    },
+    {
+      "source": "/",
+      "headers": [
+        { "key": "Access-Control-Allow-Credentials", "value": "true" },
+        { "key": "Access-Control-Allow-Origin", "value": "*" },
+        { "key": "Access-Control-Allow-Methods", "value": "*" },
+        { "key": "Access-Control-Expose-Headers", "value": "*" },
+        { "key": "Access-Control-Allow-Headers", "value": "*" }
       ]
     },
     {