Added gitlab heatmap support

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-17 13:03:53 -04:00
parent fdfd6e421b
commit 038d3620d2
No known key found for this signature in database
GPG key ID: AD914585C9406B6A
2 changed files with 18 additions and 7 deletions

View file

@ -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
};

View file

@ -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": "*" }
]
},
{