I need to enable cross-domain AJAX requests on my site, while limiting the cross-domain access to a particular template.
This template is in its own template group, so the requests from the script would look something like this:
domain.com/embeddable-content
I have this in my .htaccess file:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
But this grants access across the entire domain. How would I go about restricting access to the single template?
I've googled around, but this is slightly out of my bailiwick, and I figure there my be complications because of EE's file structure (or lack thereof).