如何提交Form method=post到Angular2中的不同服务器
我的表格如何提交Form method=post到Angular2中的不同服务器,angular,authentication,angular2-services,angular2-jwt,Angular,Authentication,Angular2 Services,Angular2 Jwt,我的表格 <html> <head> <title>Submit this form</title> </head> <body> <form method="post" action="http://localhost:4200/callback"> <input type="hidden" name="access_token" value="eyJ0" /> &l
<html>
<head>
<title>Submit this form</title>
</head>
<body>
<form method="post" action="http://localhost:4200/callback">
<input type="hidden" name="access_token" value="eyJ0" />
<input type="hidden" name="token_type" value="Bearer" />
<input type="hidden" name="expires_in" value="3600" />
<input type="hidden" name="scope" value="read write" />
<input type="hidden" name="state" value="Ra7JV" />
</form>
</body>
</html>
提交此表格
当调用时,导航到callbackComponent。但在这里它无法导航到callbackComponent,显示无法POST/callback
如何在angular2回调组件中捕获post表单 这是为像我这样的新手准备的: 为了实现这一点,我编写了服务器端代码->node.js(express),其中app.post('/callback')执行我的部分并重定向到客户端