WP REST API and Access-Control-Allow-Origin

I found a .htaccess solution, but I will be happy if anyone know a working PHP solution. It’s my .htaccess with multiple domain access support and access for only GET request: # CORS Headers <ifModule mod_headers.c> SetEnvIf Origin “^http(s)?://(.+\.)?(localhost:8080|example\.com|example\.net)$” origin_is=$0 Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is Header always set Access-Control-Allow-Methods “GET” Header always set Access-Control-Allow-Headers … Read more

Changes not visible when not logged in

Try to remove all the revisions from the edited page in admin panel. You can find the revisions in right sidebar. And you can disable the revisions by using config.php by putting this define(‘WP_POST_REVISIONS’, false);. And also you can delete from database using SQL query DELETE FROM wp_posts WHERE post_type = “revision”; Hope it will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)