repl.it
@mat1/

repl auth test

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
		<!-- <script>
			fetch(
				'https://repl.it/auth_with_repl_site', {
					method: 'POST',
					headers: {
						// 'Accept': 'application/json',
						'Content-Type': 'application/json'
					},
					body: JSON.stringify({'host': 'matdoes.dev'})
				}
			)
		</script> -->
		<form action="https://repl.it/auth_with_repl_site" method="post" target="my_iframe">
			<input type="submit" value="Do Stuff!" />
		</form>

		<!-- when the form is submitted, the server response will appear in this iframe -->
		<iframe name="my_iframe" src="not_submitted_yet.aspx"></iframe>
  </head>
  <body>
    
  </body>
</html>
result
console