App.js
<PgRequest />
<BrowserRouter>
<Route exact path="/PgResponse" component={PgResponse}/>
</BrowserRouter>
PgRequestComponent
class PgRequest extends Component{
ComponentDidMount()
{
this.submitForm();
}
submitForm=()=>{
document.form[0].method='post';
document.form[0].action='http://xxxxxx/tp/Pg';
document.form[0].submit();
}
render(){
return(
<div>
<form>
<input type='text' name='Name' />
<input type='text' name='ReturnUrl' value='http://localhost:3000/PgResponse' />
</form>
</div>
)
}
}
Now When Successfully Form Submitted to "http://xxxxxx/tp/Pg" then It redirects to my URL "localhost:3000/PgResponse"
Getting "Cannot POST /ComponentName"
in Network tab it shows 404 not Found but when i type URL in Browser it redirects me to that component i know its Get call when i type URL but how can i solve this so that it redirects to my component from Third party
Response from third Party: Screenshot