$("html, body").animate({scrollTop: scrollingDistance}, 800);
RewriteEngine On
RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
res.writeHead(200, {
'Access-Control-Allow-Origin': '*',
// 'Access-Control-Allow-Credentials': true
});
var express = require('express'),
cors = require('cors'),
app = express();
app.use(cors());
// или
app.use(cors({
origin: true,
credentials: true
}));