angular-gulp-seed icon indicating copy to clipboard operation
angular-gulp-seed copied to clipboard

Use a proxy instead of the localhost URL

Open jsheffers opened this issue 7 years ago • 2 comments

I've tried altering the gulp file to use a proxy instead of the baseDir and server options, but I haven't had any luck. Can you provide direction on how to use a proxy with this seed project?

jsheffers avatar Jun 19 '17 14:06 jsheffers

Have you tried to use the following structure on your URL?

http://username:password@proxyurl:proxyport

Why do you exactly need this?

ps: It has been a while since I did my last commit on this repo, probably you'll have to update the dependencies.

PauloLuan avatar Jun 19 '17 18:06 PauloLuan

I need it because I'm using a Drupal backend that lives on a certain local URL (local.dev/drupal). I need the URL's to match so I can avoid CORS issues (Angular - local.dev).

Without using some kind of proxy I'll have to build the project every time into a separate directory and use a vhost with that domain name (defeating the whole purpose of BrowserSync).

Does that make sense? Thanks for the response and the project.

jsheffers avatar Jun 19 '17 20:06 jsheffers