https站点请求http会被视为不安全的请求,需要使用nginx代理请求
nginx中配置:
location /httpProxy/ {
// 后端api
proxy_pass http://xxxxxxxx:18080/;
}
前端请求配置
export const environment = {
production: false,
origin:'nginx地址/httpProxy/'
};
https站点请求http会被视为不安全的请求,需要使用nginx代理请求
nginx中配置:
location /httpProxy/ {
// 后端api
proxy_pass http://xxxxxxxx:18080/;
}
前端请求配置
export const environment = {
production: false,
origin:'nginx地址/httpProxy/'
};