Giter Site home page Giter Site logo

Comments (3)

TaoRone avatar TaoRone commented on August 29, 2024

排查结果:我跨域写错位置了
add_header 'Access-Control-Allow-Origin' '*';
没有放到location / {} 内
此问题结束

from myurls.

pudding1111 avatar pudding1111 commented on August 29, 2024

排查结果:我跨域写错位置了 add_header 'Access-Control-Allow-Origin' '*'; 没有放到location / {} 内 此问题结束

麻了啊,哥,docker-compose安装后有了redis和myurl,正常代理没啥问题 ,配合sub-web (https://github.com/youshandefeiyang/sub-web-modify/tree/master)后显示短链接调用失败,我从网上搜索说是跨域问题,放到location / {} 内没解决,又说要调用实体redis,安装redis没解决,有说要在html更改backend,无论是在subweb还是myurl的html.index里面,我都没找到backend这个字段,老哥救救我啊

from myurls.

pudding1111 avatar pudding1111 commented on August 29, 2024
 https://github.com/youshandefeiyang/sub-web-modify/blob/master/src/views/Subconverter.vue这个位置已经添加了自己的短链接域名

shortTypes: {
"v1.mk": "https://v1.mk/short",
"d1.mk": "https://d1.mk/short",
"dlj.tf": "https://dlj.tf/short",
"suo.yt": "https://suo.yt/short",
"sub.cm": "https://sub.cm/short",
},
customBackend: {
"肥羊增强型后端【vless reality+hy1+hy2】": "https://url.v1.mk",
"肥羊备用后端【vless reality+hy1+hy2】": "https://sub.d1.mk",
"つつ-多地防失联【负载均衡+国内优化】": "https://api.tsutsu.one",
nameless13提供: "https://www.nameless13.com",
subconverter作者提供: "https://sub.xeton.dev",
"sub-web作者提供": "https://api.wcc.best",
"sub作者&lhie1提供": "https://api.dler.io",
},
backendOptions: [
{value: "https://url.v1.mk"},
{value: "https://sub.d1.mk"},
{value: "https://api.tsutsu.one"},
{value: "https://www.nameless13.com"},
{value: "https://sub.xeton.dev"},
{value: "https://api.wcc.best"},
{value: "https://api.dler.io"},
],

from myurls.

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.