Browser-sync: URLs in ajax-response html are not re-written

Created on 18 Dec 2014  路  2Comments  路  Source: BrowserSync/browser-sync

For example, A Wordpress site that you access on your mobile over wifi - if it makes an ajax request that contains any kind of absolute URL, they are missed by the link-rewriting and results in 404's.

bug

All 2 comments

Suffering with this too :+1:

browserSync({
    server: "test/fixtures",
    snippetOptions: {
        whitelist: ["/wp-admin/admin-ajax.php"], // whitelist checked first
        blacklist: ["/wp-admin/**"]
    }
});
Was this page helpful?
0 / 5 - 0 ratings