Tag rest api

How to fix Cross-domain requests issue

The simplest is just to hook to ‘allowed_http_origin’ and call __return_true(), e.g.: <?php add_filter( ‘allowed_http_origin’, ‘__return_true’ ); ?> Or if you want to limit your application to requests from specific domains (a very good idea), hook to ‘allowed_http_origins’ (note the… Continue Reading →

© 2025 TapanAcharjee

Up ↑