Access-Control-Allow-Origin error in Chrome

While doing SAPUI5 development in chrome, you might get the following error:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:57331' is therefore not allowed access. The response had HTTP status code 404.

The solution is to install the chrome pluginĀ Allow-Control-Allow-Origin.

Advertisements