titaniumnetwork-dev / titanium-p2

Releasing this due to popular demand
6 stars 163 forks source link

Requested url was not found on this server. #3

Open Harp3rDev opened 4 years ago

Harp3rDev commented 4 years ago

No matter what I do, after copying pretty much every file and moving all my files to /public, pressing go sends me to https://emerald-phoenix.herokuapp.com/createSession which doesn't exist. I made a new branch and deployed it to heroku. Here is all of the code i've edited:

config.json

{
    "prefix": "/math/",
    "port": "8080",
    "ssl": false
}

math.html (you'd get to it by clicking on alloy proxy in selection1.html)

<center>
<!--<form action="" method="get" id="web-search-box" style="transform:scale(1.1)">-->
<form action="/createSession/" id="web-search-box" method="POST" style="transform:scale(1.1)">
<p>
<input type="text" placeholder="Enter URL" style="border:none;border-radius: 5px;padding:10px;" id="url" autocomplete="false" name="url" />&nbsp;
<button type="submit" id="btn">Go!</button>>
 />
<script>

function redirect(str) {
return location.href = '/alloy?url=' + btoa(str)
}
 //these are the shortcut buttons
function googlekey(){redirect("google.com")}
 function startpagekey(){redirect("startpage.com")}
 function andkonkey(){redirect("andkon.com")}
 function youtubekey(){redirect("youtube.com")}
function snake(){redirect("littlebigsnake.com")}
 function surviv(){redirect("surviv.io")}
function shellshock(){redirect("shellshock.io")}
 function defly(){redirect("defly.io")}
 </script>
 </p>
</form>
 </center>