-
Check caching/plugins interference
-
Try using:
jQuery.ajax({
type: ‘POST’,
url : obj_php.ajax_url_login,
beforeSend: function (xhr) {
xhr.setRequestHeader(‘X-WP-Nonce’, obj_php.nonce);
},
-
Check that nonce is actually set correctly in the hidden form field and when submitting check the payload in dev console, make sure the key/value match i.e, nonce_check: e7chadas0d
-
Lastly, double check you have it setup according to https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/
Related Posts:
- How to check WordPress website username and password is correct
- WordPress REST API call generates nonce twice on every call
- Configuring WordPress Auth Cookie Expiration
- How to set a cookie for logged in users to md5($user->ID . “my_secret”)?
- How to check username/password without signing in the user
- Modifying the way WP sets cookies
- custom XMLRPC method plus authentication of user & WooCommerce order
- Log in from one wordpress website to another wordpress website
- WordPress custom authentication implementation
- How to: Rest endpoint returning empty object
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Custom endpoint that returns an xml
- Plugin Sidebar is not Saving Meta Attribute to Post/Page after “Update”
- Rest Api How to get results of child categories with one api call
- Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
- Rest API authentication issue when called from fetch request in bundle.js
- WP rest api v2 posts filter by ‘search’ & ‘category_name’ not working
- Can’t GET draft posts via REST API from headless frontend
- What method to use to call a REST API?
- How to extend expiry time of jwt wordpress token?
- How to get the ID of the currently logged in user?
- WP REST API V2 – Add user data to response
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- Will setcookie work if there is a cache plugin installed?
- How to get results of subcategories also?(WP Rest Api v2)
- Amending REST API function without deactivate/activate plugin every time changes is made
- How to save generated JWT token to cookies on login?
- Create a new post using rest api and save featured image using an external image url
- Adding custom end points, No error line
- Serve text/html from wp-json API via WPEngine, headers not being set properly
- Secure REST with nonce works only when not logged
- How to do POST request with WP REST API v2 to custom table?
- rest_no_route on custom API endpoint wordpress
- Custom Rest Endpoint: Post/Put/Patch not working
- Can’t retrieve body params from PUT endpoint using formdata
- Setting a JSON web token from a secondary api as a secure cookie on WordPress
- Do I need to create an endpoint?
- WordPress Rest API with rest_do_request, possible race condition?
- How to use apiFetch to get author information in Gutenberg properly?
- Mock a dependency of a WP_REST_Controller class
- update_callback is not working in register_rest_field
- REST Endpoint API 404
- Secruity Questions on a timer
- Redirect returning users to a certain page?
- Log in user using WordPress REST API
- Allow REST API Endpoint to specific user and hide from public
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- How to verify which WordPress user requested the API in ASP .NET Core?
- How to do admin ajax request in a plugin for rest api
- Attaching Image-file to userId
- Query String Filtering API
- Custom plugin & calling REST api of wordpress instance the plugins is running on
- GET request return value as error instead of success
- How to query a nested field in wordpress api using _fields param
- Get Custom taxonomy parent with wordpress REST API
- register_meta not showing custom post type metabox data in rest api
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- Securing custom rest API endpoints with public access from PWA
- WP_Query not ordering correctly
- 403 error rest_’cookie_invalid_nonce’ on API Request
- The same session information for peer users on two different WordPress servers
- Adding Amchart Interface to WordPress API
- WC REST API Error Handling
- how to add security questions on wp-registration page and validate it
- Initializing rest endpoint issue
- Multisite and the JSON REST API: How to?
- React in plugins: REST endpoints vs. regular functions
- Why setcookie function redirecting to home page in wordpress?
- Query only title/field/featured media of posts [closed]
- WP API users per page
- Best place to keep files that are called by cron jobs?
- Is it safe to use PUT and DELETE requests
- Is it possible to make WordPress as a RESTful app?
- oneOf two possible objects in WP REST API?
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- How to update WordPress Plugins in your own maintance application?
- Extend Plugin that creates an endpoint for GET request to also accepts POST requests
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- Authenticate + Authorize WP REST API request before built-in WP JSON Schema Payload Validation?
- External api call using wordpress
- Does WP REST API cache internally executed (rest_do_request) requests?
- Run different permission_callback depending on HTTP method of custom REST API endpoint
- REST API error in block editor for custom templates
- How to get locale within WP REST Request?
- Execute callback after REST API request completes + Response is sent
- How to boost WP custom post REST API GET queries by custom taxonomies
- How Do I Use jQuery UI In My Plugin
- How to implement add_image_size in a plugin
- ERROR: Options page not found – saving settings page with tabs
- Adding settings link to plugin doesn’t work
- Wp_list_table search box not working for custom value from database
- Notice: Trying to get property ‘term_id’ of non-object
- How to add user details to different tables immediately after user registration
- Does is_admin() really provide a plugin performance improvement?
- Enqueueing common php scripts in a plugin
- How to localize data array in plugin’s option page
- Upload product image from frontside for administrator only
- How to inject html to every page with a plugin?
- Custom plugin not appearing