KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've seen instances where people are getting forbidden errors while attempting to make remote Ajax requests, but I'm making a local request and I also have CSRF turned on in my middleware. errorThrown is returning "Forbidden" I think the issue might be that I'm trying to send this to a normal view (the current page)... I'm not sure if my preprocessor is returning to the view to re-render the page.. or if it's returning right back to my current page. (don't think I explained that very well) Hopefully this gives you a good enough picture of whats going on. Any/All help is appreciated. the .ajax: jQuery.ajax({ type: "POST", dataType: "json", data: dataString, success: function(json) { jQuery(".signup").attr('disabled', false); $('.success').show(); console.log(json.message); }, error: function(jqXHR, textStatus, errorThrown) { jQuery(".signup").attr('disabled', false); $('.fail').show().append(errorThrown); console.log(textStatus); } });
Tags (comma-separated)
Save Edits
Cancel