s-p-a-r-k / Jacket-Tracker

Junior Design Project
0 stars 1 forks source link

Fix cors issues on deployed app #57

Closed gmcallister3 closed 6 years ago

gmcallister3 commented 6 years ago

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