Vue.js
- 10 ответов
- 0 вопросов
5
Вклад в тег
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' '*';
ddd_header 'Access-Control-Allow-Methods', '*';
return 204;
}
if ($request_method = 'POST') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' '*';
ddd_header 'Access-Control-Allow-Methods', '*';
}
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' '*';
ddd_header 'Access-Control-Allow-Methods', '*';
}
res.header('Access-Control-Allow-Methods', '*');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: *');
@media (hover: none) {
/* Стили для устройств с тачскрином */
}
@media (min-width: 765px) and (max-width: 1240px) {
/* Стили для планшетов */
}