Changeset 371
- Timestamp:
- 01/29/2010 01:32:25 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/wp/transposh_ajax.php
r365 r371 20 20 * This file handles various AJAX needs of our plugin 21 21 */ 22 // The following headers allow for cross-domain posting here, which is useful for some weird sites 23 header('Access-Control-Allow-Origin: *'); 24 header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); 25 header('Access-Control-Allow-Headers: X-Requested-With'); 26 header('Access-Control-Max-Age: 86400'); 27 28 // Exit early so the page isn't fully loaded for options requests 29 if (strtolower($_SERVER['REQUEST_METHOD']) == 'options') { 30 exit(); 31 } 32 22 33 // we need wordpress and us... 23 34 require_once('../../../../wp-load.php');
Note: See TracChangeset
for help on using the changeset viewer.
