broke down and used a gem for CORS
idea index template