I am trying to access the contents of an SVG file using jQuery AJAX but keep getting the same error in Chrome.
JavaScript
$.get("my.svg", function(data){
print(data)
})
Console Output
[Error] jquery.min.js:4 XMLHttpRequest cannot load file:'///Users/james.jensen/Desktop/helloworld/my.svg'. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I literally copied and pasted the code from here and changed it to fit my situation, so I am unsure why my code is malfunctioning in this way.
Thanks in advance