Skip to content

Commit 7515d2e

Browse files
committed
Add sqlgate.com domain in XMLHttpRequest Access-Control-Allow-Origin
1 parent e4bea0e commit 7515d2e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

website/core/Footer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ gtag('config', 'UA-26882913-4');`,
6666
<script
6767
dangerouslySetInnerHTML={{
6868
__html: `
69+
6970
var xhttp = new XMLHttpRequest();
7071
xhttp.onreadystatechange = function() {
7172
if (this.readyState == 4 && this.status == 200) {
@@ -75,6 +76,7 @@ gtag('config', 'UA-26882913-4');`,
7576
xhttp.open("GET", "https://www.sqlgate.com/getFooter?language=${
7677
this.props.language
7778
}", true);
79+
xhttp.setRequestHeader("Access-Control-Allow-Origin", "https://www.sqlgate.com");
7880
xhttp.send();
7981
`,
8082
}}

0 commit comments

Comments
 (0)