add angular support and resolve Cross-Origin request Issues