updating failed (wp 5.0.2) when wordpress address differs from site address
-
My site address is different from my wordpress address in general settings. After update to wp 5.0.2, I can no longer update or publish a post. I was able to update a post by changing the site address temporarily to the wordpress address. After the update, I changed it back. Using the classic editor does not help.
I have tried various ways to add the x-wp-nonce header. Nothing works. What can I do?
Here is the error.
Access to fetch at ‘https://blog.todaydata.com/wp-json/wp/v2/users/?who=authors&per_page=100&_locale=user’ from origin ‘https://todaydata.us’ has been blocked by CORS policy: Request header field x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response.
data.min.js?ver=4.1.0:1 Uncaught (in promise) TypeError: Failed to fetch
post.php?post=636&action=edit:1 Access to fetch at ‘https://blog.todaydata.com/wp-json/wp/v2/taxonomies?context=edit&_locale=user’ from origin ‘https://todaydata.us’ has been blocked by CORS policy: Request header field x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response.The page I need help with: [log in to see the link]
- The topic ‘updating failed (wp 5.0.2) when wordpress address differs from site address’ is closed to new replies.