I am trying to fetch some English Translation of Quran from quran.com
for a university project using the following link:
http://quran.com/quran/ajax?s=1&sA=1&eA=8&l=12C6
This link when entered in browser returns proper results but when I try to use this link in my Angular method I get the error:
A potentially dangerous Request.Path value was detected from the client (:)
Angular Method:
Qt.Link = "http://quran.com/quran/ajax?s=1&sA=1&eA=8";
Qt.GetTranslation = function () {
$http.get("/"+Qt.Link).success(function (result) {
Qt.display = result;
}).error(function (data) {
toastr["error"](data);
});
};
After searching on the internet I found out that this is because of some invalid characters in the URL or because of not passing the parameter correctly like shown here.
If the link works in the browser why doesn't it work with the Angular method?
How can I fix this?
Any help will be appreciated. Thank You