The application uses proxy endpoints to avoid cors violations for external requests (mailgun, firebasestorage). This works fine during development, but we host our application in firebase hosting which does not allow proxy servers.
Current thinking to fix the problem:
1) We will have to add advanced configuration to the firebasehosting deployment as in
https://firebase.google.com/docs/hosting/full-config
2) Then update ionic project for deployment modes to switch the endpoints automatically, or whoever deploys will have to change the proxy endpoints back to origin manually for every deployment
The application uses proxy endpoints to avoid cors violations for external requests (mailgun, firebasestorage). This works fine during development, but we host our application in firebase hosting which does not allow proxy servers.
Current thinking to fix the problem: 1) We will have to add advanced configuration to the firebasehosting deployment as in https://firebase.google.com/docs/hosting/full-config 2) Then update ionic project for deployment modes to switch the endpoints automatically, or whoever deploys will have to change the proxy endpoints back to origin manually for every deployment
npm run ionic:build --prod firebase deploy