WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Access-Control-Allow-Origin (2 posts)

  1. billjwolff
    Member
    Posted 9 months ago #

    I have a custom controller and want to add an Access-Control-Allow-Origin header so any browser could access the data. Where would this header go in the custom controller code?

    http://wordpress.org/plugins/json-api/

  2. ivancamilov
    Member
    Posted 8 months ago #

    I believe this has to be in your .htaccess. Take a look at http://enable-cors.org/server_apache.html

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.