Allow local dev against gleasonator.com

This commit is contained in:
Alex Gleason 2020-08-26 12:29:42 -05:00
parent 80a78ac0e1
commit c0dc4a69cd
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -29,11 +29,13 @@ const makeProxyConfig = () => {
proxyConfig['/api/patron'] = { proxyConfig['/api/patron'] = {
target: patronUrl, target: patronUrl,
secure: secureProxy, secure: secureProxy,
changeOrigin: true,
}; };
backendEndpoints.map(endpoint => { backendEndpoints.map(endpoint => {
proxyConfig[endpoint] = { proxyConfig[endpoint] = {
target: backendUrl, target: backendUrl,
secure: secureProxy, secure: secureProxy,
changeOrigin: true,
}; };
}); });
return proxyConfig; return proxyConfig;