I was wondering if there is way to enable CORS for the ElementAPI plugin? I want to be able to call the API from the website and not allow external client to access the API

1 Answer 1


Not really anything to do with Craft or the ElementAPI plugin, but you can enable CORS at the Apache/.htaccess level easy enough.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.