I\'ve enabled CORS in my nginx and it seems to work OK until I add this peace of code (bolded):
public function store(Request $request){ **$validated