Angular2のフロントとPHPのサーバでJSONで通信するWebアプリを作成中。
同一マシン上のCromeでやっているが、動作しているポートが異なるため、
ドメイン制約に引っかかって、Angularでエラーになる。
XMLHttpRequest cannot load http://localhost:8888/xxxxxx. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.
解決策として、Cromeのセキュリティを外して起動することにした。