homestead - BrowserSync proxy not rewriting host in URLs -


i using browsersync proxy proxy laravel homestead instance.

i used hostname target dns had issues resolving changed following:

browsersync.init({     proxy: {         target: "192.168.10.10",         reqheaders: function (config) {             return {                 "host": "example.dev",             }         },     } }); 

the issue urls in response still original, e.g.:

<link rel="stylesheet" href="http://example.dev/builds/css/main.css" /> 

i assume should this:

<link rel="stylesheet" href="http://localhost:3000/builds/css/main.css" /> 

anyone know why happening or whether may bug?


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -