Guest User

Untitled

a guest
Jul 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. In config > env > staging.js
  2.  
  3. [...]
  4.  
  5. //--------------------------------------------------------------------------
  6. // Security Settings Configuraiton
  7. //--------------------------------------------------------------------------
  8.  
  9. security: Object.assign({}, PRODUCTION_CONFIG.security, {
  10.  
  11. cors: {
  12. allRoutes: true,
  13. onlyAllowOrigins: [
  14. 'https://app-frontend.mydomain.com',
  15. 'https://app-frontend.herokuapp.com'
  16. ],
  17. allowRequestHeaders: 'Content-Type, Authorization'
  18. }
  19.  
  20. }),
  21.  
  22. //--------------------------------------------------------------------------
  23. // WebSocket Server Settings Configuration
  24. //--------------------------------------------------------------------------
  25.  
  26. sockets: Object.assign({}, PRODUCTION_CONFIG.sockets, {
  27.  
  28. onlyAllowOrigins: [
  29. 'https://app-frontend.mydomain.com',
  30. 'https://app-frontend.herokuapp.com'
  31. ]
  32.  
  33. }),
  34.  
  35. [...]
  36.  
  37. In config > prod.env.js
  38.  
  39. 'use strict'
  40. module.exports = {
  41. NODE_ENV: '"production"',
  42. HOST: '"https://*app-frontend*.herokuapp.com"'
  43. VUE_APP_BASE_URL: '"https://*app-backend*.herokuapp.com"'
  44. }
Add Comment
Please, Sign In to add comment