CMS Mastering Development Wordpress

(BAD REQUEST) 400 admin-ajax.php error WordPress

I updated my WordPress to current version as it was very outdated. And now I am getting a bad request browse issue now. /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 400 (Bad Request) browser pop up. This only occurs when user is not logged in admin. I checked plugins and […]

AJAX Development jQuery PHP

Perform AJAX post request to the same PHP page (Jquery Form Plugin)

I’m writing a new web interface using JavaTMP that is an AJAX based admin template. After spending some time on understanding how it works i created a page with a form that will allow you to create a new project in my software. Basically using php it will be pretty easy to create a form […]

Development Windows

POST method not being called after OPTIONS

I’m trying to call an API from an angularjs application var url = “…”; var myObject = {…}; var config = { headers : { ‘Content-Type’: ‘application/json;charset=utf-8;’ } }; $, myObject, config).then(function(result){…}); Because it’s a cross-origin request, it does the preflight, so it calls the OPTIONS method. This is the request header: Host: … User-Agent: […]


How to correctly manage fetch errors response with observables and RxJS?

I just recovered a simple auth app built with ReactJS, redux-observable and RxJS. I want to implement an error handler when the API backend send a response > 400. Actually, there is an epic that handle login process on LOGIN_REQUEST event: const apiLoginEpic = (action$, state$) => action$.pipe( ofType(authConstant.LOGIN_REQUEST), mergeMap(action => authService.loginApi(action.username, action.password)), map(({ body […]