Using the original URL, not proxy, with browser-sync
For me, it worked by specifying host and then open: ‘external’, like this: browserSync.init({ proxy: ‘http://myproject.dev/’, host: ‘myproject.dev’, open: ‘external’ });
For me, it worked by specifying host and then open: ‘external’, like this: browserSync.init({ proxy: ‘http://myproject.dev/’, host: ‘myproject.dev’, open: ‘external’ });
For others. Answer for subject is configure Nginx like: server { listen 80; server_name mydomain.example; location / { access_log off; proxy_pass http://mydomain.example:8080; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
I had exactly the same problem. I just commented out a line in my nginx.conf file: include /etc/nginx/sites-enabled/*; changed to #include /etc/nginx/sites-enabled/*;
It’s a bug from Charles Proxy. You should wait until Charles Proxy fixes it. To work around, you might manually export the certificate from Help Menu -> SSL Proxying -> Save Charles Proxy Root Certificate. Then drag the file to iOS Simulator. Then trusting it by Going to Settings app -> General -> About -> … Read more
Edit your .bowerrc file ( should be next to your bower.json file ) and add the wanted proxy configuration “proxy”:”http://<host>:<port>”, “https-proxy”:”http://<host>:<port>”
I’ve recently stumbled upon this need myself and have found that in order to use variables in a proxy_pass destination you need to set a resolver as your error.log would most probably contain something like no resolver defined to resolve … The solution in my case was to setup the following using a local DNS … Read more
I was having similar issue with HTTP calls to local ASP.NET Core Web API apps. Changing the proxy settings didn’t fix it for me. Finally fixed it by turning off File > Settings > General > SSL Certificate Verification
The documentation says: The default_server parameter, if present, will cause the server to become the default server for the specified address:port pair. It’s also obvious, there can be only one default server. And it is also says: A listen directive can have several additional parameters specific to socket-related system calls. They can be specified in … Read more
Thanks @user3259967 This did the job. I would like to add that if you are behind a proxy that needs to be authenticated, you can add the username/password to your .bowerrc file. { “directory”: “library”, “registry”: “http://bower.herokuapp.com”, “proxy”:”http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/”, “https-proxy”:”http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/” } NOTICE the use of http:// in https-proxy
An Update: Version 3.8 of Charles Proxy was just released, with the ability to rewrite the status. From the release notes: Rewrite tool: allow rewriting of response status This version’s rewrite UI adds a new “Response Status” rule type: