Giter Site home page Giter Site logo

HTTPS问题 about animesearcher HOT 1 CLOSED

yuanzhidao avatar yuanzhidao commented on July 28, 2024
HTTPS问题

from animesearcher.

Comments (1)

zaxtyson avatar zaxtyson commented on July 28, 2024

以前本着节省带宽的原则没有强制 API 代理所有流量,图片根本没有代理(现在因为跨域问题导致服务器端部分图片无法加载),视频只有必要时才走代理。

如果你是主域名:6001去访问这个服务,浏览器可能自动给你跳到 https 去,单独开一个子域名,不配置证书即可。

如果你的需求是,接口返回的所有流量通过 HTTPS 传输,那么为 API 的 6001 端口设置一个反向代理,同时配置好证书。在配置文件中强制所有流量通过 API 代理,这样所有第三方资源都是通过反向代理返回,保证链接都是 HTTPS。

https://github.com/zaxtyson/Anime-API/blob/dev/config.py

from animesearcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.