WordPress.org

Forums

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

  1. billjwolff
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.