In angular2 how to use CORS cross domain, it is necessary to set the response header at the server, how to set?
Asked
Active
Viewed 442 times
1 Answers
0
You need to set the cross domain origin in only server side not in client side. So enable CORS in server side.
And if you are using Web Api for a server call . Enable CORS and Access-Control-Allow-Origin.

Venkateswaran R
- 438
- 2
- 5
- 18
-
https://stackoverflow.com/questions/34790051/how-to-create-cross-domain-request-angular-2/45273215#45273215 – Harsh Maheswari Jul 24 '17 at 05:34