blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

使用 nginx 代理解决跨域请求问题

发表于 2019-12-12 | 分类于 运维 | 0 | 阅读次数 252

注意 localhost 后面的 / 不能省略
proxy_pass 请求到需要跨域的服务器即可

    # Avoid CORS and reverse proxy settings
    location /spweb/ {
        proxy_http_version 1.1;
        proxy_pass https://xx/;

        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Methods "POST, GET, OPTIONS";
        add_header Access-Control-Allow-Headers "Origin, Authorization, Accept";
        add_header Access-Control-Allow-Credentials true;
    }
  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/12/12/201912121628
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
每天自动定时备份 远程服务器上 mysql 数据库
删除git中缓存的用户名和密码
© 2021 blank
Everything is energy and everything has a frequency