Skip to content
Snippets Groups Projects
Verified Commit 038d3620 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Added gitlab heatmap support

parent fdfd6e42
No related branches found
No related tags found
No related merge requests found
...@@ -191,8 +191,8 @@ document.addEventListener("DOMContentLoaded", function() { ...@@ -191,8 +191,8 @@ document.addEventListener("DOMContentLoaded", function() {
var getJSON = function(url, callback) { var getJSON = function(url, callback) {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('GET', url, false); xhr.open('GET', url, false);
xhr.setRequestHeader("Accept", 'application/json'); xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("Access-Control-Allow-Origin", '*'); xhr.setRequestHeader("Accept", "application/json");
xhr.send(); xhr.send();
return xhr.response return xhr.response
}; };
......
...@@ -106,12 +106,23 @@ ...@@ -106,12 +106,23 @@
}, },
"headers": [ "headers": [
{ {
"source": ".*", "source": "(.*)",
"headers": [ "headers": [
{ { "key": "Access-Control-Allow-Credentials", "value": "true" },
"key": "Access-Control-Allow-Origin", { "key": "Access-Control-Allow-Origin", "value": "*" },
"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": "*" }
] ]
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment