Relative Content

Tag Archive for http

Why do some websites showing 0 bytes in Chrome’s developer tools

I am doing a page speed optimization for my website and studying how other websites do it. I noticed that some websites such as as Facebook or Ringgitplus show 0 bytes for some of their resources in Chrome’s developer tools, Network tab, while the real content size is several kilobytes.

http.post is not a function error – react & laravel

const submitForm = () =>{ http.post(‘/createpost’,{title:title,description:description}).then(res=>{ alert(2); }); } Above is the code inside submit from Below is the backend coding in Api.php Route::middleware(‘auth:sanctum’)->get(‘/user’, function (Request $request) { return $request->user(); }); Route::post(‘/createpost’,[UserPostController::class, ‘create’]); for the above coding i get below eroor when pressing submit button on the page. http