For a university project, I am attempting to access an English translation of the Quran from quran.com
using the provided link:
Although this link works correctly when entered directly into a browser, I encounter an error when trying to use it in my Angular method:
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);
});
};
Upon researching online, I learned that this error may be due to invalid characters in the URL or incorrect parameter passing as explained here.
If the link functions properly in the browser, why does it fail in the Angular method?
What steps can I take to address this issue?
Any assistance on resolving this matter would be greatly appreciated. Thank you.