mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
Added gitlab heatmap support
This commit is contained in:
parent
fdfd6e421b
commit
038d3620d2
2 changed files with 18 additions and 7 deletions
|
@ -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
|
||||
};
|
||||
|
|
21
vercel.json
21
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": "*" }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue