This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.
Ho configurato il sito Web per accettare solo https su cloudfront sorprendente. In poche parole si dispongono di un form di login php, e al momento del login di successo è reindirizzare l'utente come segue:Questa distribuzione non è configurata per consentire la richiesta HTTP
if(isset($_POST['login'])){
[...]
echo "<script>window.open('coursePayment.php?crs_id=$crs_id','_self')</script>";
sotto è il modulo:
<form style="margin-top:-20px" method='post' action='' class='form-horizontal' role='form'>
<input type="hidden" id="couponCodeLogin" name="couponCodeLogin">
<input type="hidden" id="couponCodeLoginAmount" name="couponCodeLoginAmount">
<br><br>
<div class="group">
<input type='text' class='form-control' name='email' required>
<span class="highlight"></span>
<span class="bar"></span>
<label>Email</label>
</div>
<div class="group">
<input type='password' class='form-control' name='pass' required>
<span class="highlight"></span>
<span class="bar"></span>
<label>Password</label>
</div>
<h5 style="color:#FF6400; cursor:context-menu; margin-top:0px" class="displayForgotPassword">Forgot your password? Click here to retrieve it.</h5><br>
<input type='submit' id='moreInfoButton' name='login' value='Continue' class='btn btn-danger'>
</form>
Come configurare fronte nuvola ?? non sono in grado di aggiungere post e inviare una richiesta ... –
risposta aggiornata con collegamenti a doc che camminano attraverso il modo in cui lo fai nella console AWS – Mircea