CORS Policy has been blocked my subdomain
问题 I have a same domain, one of them is domain without prefix www. For example, https://www.example.com https://example.com First domain works fine because it is default domain. But second one has gives error when I do CRUD or accessing any api service. Access to XMLHttpRequest at 'https://www.example.com/hubCon/negotiate' from origin 'https://example.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow