enable cors in .htaccess

I have created a basic RESTful service with the SLIM PHP framework and now I’m trying to wire it up so that I can access the service from an Angular.js project. I have read that Angular supports CORS out of the box and all I needed to do was add this line: Header set Access-Control-Allow-Origin "*" to my .htaccess file.