Access-Control-Allow-Origin #1063
RandomSamurai
started this conversation in
General
Replies: 1 comment
-
In the above example the CORS header would need to be set on myip.com and not on heimdall. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am trying to add some functionality to Heimdall such as the current IP of the internet connection.
But need to enable to Access-Control-Allow-Origin to be able to work. What would the best way be to enable this?
I have tried adding it to a few different files, but no success. Does anyone know the best way to do this?
$.getJSON("https://api.myip.com", function(data) {
// Display the visitor's IP in the console
console.log(data.ip);
});
Beta Was this translation helpful? Give feedback.
All reactions