###Enabling CORS for a PredictionIO Engine This guide is meant for people who have no experience with nginx and want to enable Cross-Origin Resource Sharing (CORS) with their predictionIO instance. Enabling CORS is needed if you'd like to query your engine from anther domain's front end.
In my case, I had the recommender engine running on an aws instance. My goal was to query with AJAX from another domain. For example:
data = {'user': 'Bob', 'num': 4};
$.ajax({
url: 'http://<pio ip>:8000/queries.json',
type: 'POST',