I
I
Igor2015-11-03 12:11:33
JavaScript
Igor, 2015-11-03 12:11:33

How to make Gulp (browser-sync) work with ajax?

if you run the most standard code

$.ajax ({
        url: "tabl.json",
        type: "POST",
        data: ({number: 3}),
        dataType: "html",
        beforeSend: funcBefore,
        success: funcSuccess
      });


then in gulp (browser-sync) it throws an error . if the same files are transferred to OpenServer, then everything works well.

how to deal with it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question