CORS problem with ionic livereload: custom HTTP header filtered out


#1

I’ve a strange problem when running:
ionic run android --consolelogs --livereload --serverlogs

The remote POST response’s header “x-jwt” is filtered out and my app does not work.

I’m 100% sure that the CORS are ok on the server side, the “x-jwt” header is present if i use:

  • ionic serve + firefox
  • ripple emulator + chrome
  • cordova run android --device (or --emulator)

Is it some kind of bug with livereload?


#2

Resolved adding header response server side. Also seems the X must be uppercase.