HTTP 302 error
I all.
With jQuery when I make a $.post I have a 302 error
$( '#test' ).on( 'click', function()
{
$.post( 'save', {}, function( result )
{
console.log( 'saved' );
} );
);
Here is the route :
Route::post( 'save', 'HomeController@save' );
What is this error code ?
Where can I see the redirection in the console?
Here is the header :
Request URL:http://cmne-viewer.dev/save_levels_position
Request Method:POST
Status Code:302 Found
Remote Address:192.168.10.10:80
Cache-Control:no-cache
Connection:keep-alive
Content-Type:text/html; charset=UTF-8
Date:Fri, 19 Feb 2016 17:34:10 GMT
Location:http://cmne-viewer.dev
Server:nginx/1.8.0
Transfer-Encoding:chunked
Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:0
Cookie:__ngDebug=true; XSRF-
TOKEN=eyJpdiI6IndvajI2dWJtRTNEWENpSFQxYitXcHc9PSIsInZhbHVlIjoiRVNhWFRqUDhNbGdBXC9xSEIrYXhERmpJVFNpSzZRODN1aExjY040U0N1eUdKaHowRlwvSVI5d1hyTXBPSUFZbEJmVE4rVEF4alVYT1FLcURjS0tBckdQdz09IiwibWFjIjoiZDNmZGU1NDkwZTRjOGQ1NzE4YjBkZTk0NDcxMzUxOGY3OWFkZjY5YmYzZTU0NDQ0NGJhMDg5OGJjZTVhNGI0MyJ9; laravel_session=eyJpdiI6ImhrUXhwYlRFdThnXC84NDhvUFZ0dHR3PT0iLCJ2YWx1ZSI6InRIZWd3ZVhQZzBlS0pXSklxdGZWNVlKcGM4SDc3WmhKVU42ZHV3Zmx1VlVIdmdzR1BwTUJadXUrd2liaFhRZjZrZEZYaVppZ0trclJYZEdUbzBhcHdnPT0iLCJtYWMiOiJhOWFmMjU2OTUyMDQ0NjJmMGJjYWIyNTkwNDFhNWJkZWU4ZDYzZmYyNTAzOGI5NzkyZTIwY2VjZDA1OThkYTU0In0%3D
Host:cmne-viewer.dev
Origin:http://cmne-viewer.dev
Referer:http://cmne-viewer.dev/site/achicourt
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/48.0.2564.109 Safari/537.36
X-Requested-With:XMLHttpRequest
Ok, but I don't know where to go to debug this problem...
The problem is when I make an Ajax request...
If this route is under auth, may be you could start there, see if the middleware correctly recognises ajax request?
How you solved this problem in your code?
now I have the same too in laravel 5.2 TT
Please or to participate in this conversation.