Hello Guys,
I want to send data to remote server with Vue js. But it's a cros error.
JavaScript: Vue
PHP: Remote Server
- /**
- * @Route("/authorize" , name="client/authorize" , methods="GET" , requirements={"authorize" = "\d+"})
- * @Request({"secret_id":"string" , "secret_key":"string"})
- */
- public function authorizeAction( string $secret_id = null , string $secret_key = null ){
- $response = new Response();
- $response->headers->set('Content-Type', 'application/json');
- $response->send();
- return ['status' => 200];
I don't understand this error, I've tried too much but nothing ever worked. Do you have any idea?