XMLHttpRequest cannot load http://localhost:9001/Strategy.svc/NewStrategy. Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'http://localhost:9000' that is not equal to the supplied origin. Origin 'http://localhost:4200' is therefore not allowed access.
Asked
Active
Viewed 120 times
1 Answers
0
You are setting the 'Access-Control-Allow-Origin' header value to 'http://localhost:9000' but the origin hold's value "http://localhost:4200".
Modify such that both of them match.
Please find similar problem with solutions

Tejaswi Pandava
- 486
- 5
- 17
-
in case of problem is not solved give us some code to work with – Tejaswi Pandava Feb 20 '19 at 08:46