|
@@ -29,7 +29,7 @@ function uhp24_disable_remote_patterns() {
|
|
|
************************************************************/
|
|
|
|
|
|
function add_cors_http_header(){
|
|
|
- header('Access-Control-Allow-Origin: https://srh.ovid:333');
|
|
|
+ header('Access-Control-Allow-Origin: https://uhp.ovid:333');
|
|
|
header('Access-Control-Allow-Credentials: true');
|
|
|
header('Access-Control-Allow-Headers: X-WP-Nonce', false );
|
|
|
}
|
|
@@ -40,7 +40,7 @@ function uhp24_browsersync_save() {
|
|
|
'blocking' => false,
|
|
|
'sslverify' => false
|
|
|
];
|
|
|
- $request = wp_remote_get('https://srh.ovid:333/uhp/__browser_sync__?method=reload', $args);
|
|
|
+ $request = wp_remote_get('https://uhp.ovid:333/__browser_sync__?method=reload', $args);
|
|
|
}
|
|
|
add_action('rest_after_insert_page', 'uhp24_browsersync_save', 10, 3);
|
|
|
add_action('rest_after_insert_post', 'uhp24_browsersync_save', 10, 3);
|