You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to bypass proxying requests based on a function call
The primary use-case behind this addition is to allow HTML5 history
support for proxied paths. E.g.:
```
proxy: {
'/thepath*': {
target: 'https://otherserver.example.com',
bypass: function(req) {
if (req.headers.accept.indexOf('html') !== -1) {
console.log('Skipping proxy for browser request.');
return '/index.html';
}
},
},
},
```
0 commit comments