i just was wondering why i can not pass a url String via a ajax post request. I am posting to my own Server so there is no CORS issue i guess.
When i am trying todo this:
var url = $(".testInput").val();
$.post("api.php", {addSong: url});
i am getting a 403 Forbidden from my php file.
But as soon i am doing this:
var url = $(".testInput").val().replace("http://", "").replace("https://","");
$.post("api.php", {addSong: url});
i get a 200 okay from the server and it all works fine and perfectly.