ak
background: #e9eb67!important;
border-radius: 100px!important;
border:none;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
margin-right:15px!important;
}
Size: a a a
ak
ЮЧ
function withCORSHeaders(Response $resp) {
return $resp
->withHeader('Access-Control-Allow-Origin', '*')
->withHeader('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type, Accept, Origin, Authorization');
}
$app->options('/guides', function (Request $req, Response $resp, array $args) use ($container) {
return withCORSHeaders($resp)
->withHeader('Access-Control-Allow-Methods', implode(',', ['GET', 'POST']));
});
$app->get('/guides', function (Request $req, Response $resp, array $args) use ($container) {
$guides = $container->get('db')->table('guides')->get();
return withCORSHeaders($resp)->withJson($guides);
});
ЮЧ
OPTIONS такие:DM
OPTIONS такие:ЮЧ
ЮЧ
DM
ЮЧ
ЮЧ
И
Y
АФ
꧁S
OO
AD
OO
DM
k
꧁S
DM