Answer the question
In order to leave comments, you need to log in
Why don't ajax requests work in GULP browsersync?
Why don't ajax requests work in GULP browsersync? There is a simple mail form in the project, ajax is sent, everything is standard and simple
$.ajax({
type: "POST",
url: '/MailHandler.php',
data: {
.....
},
Answer the question
In order to leave comments, you need to log in
Because browsersync creates an HTTP server and it doesn't support php files. PHP handler can be installed in Apache but not in GULP browsersync.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question