[Bug] 代理地址部署的时候环境变量里填写可用,但网页里自定义地址就失效
vercel部署的时候,环境变量里填写base url可以用,但是在页面上直接通过自定义地址填写就不可以用了,不知道是哪里出了问题,请问有什么排查思路吗? { "error": true, "message": "Failed to fetch" }
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] When deploying the proxy address, it is available to fill in the environment variables, but the customized address on the web page is invalid.
When deploying vercel, it works if you fill in the base url in the environment variable, but it doesn't work if you fill it in with a custom address directly on the page. I don't know what went wrong. Do you have any troubleshooting ideas? { "error": true, "message": "Failed to fetch" }
Try to set insecure content to allow.
Try to set insecure content to allow.
here is my problem:
- deploy one-api in localhost setup the enter-point to http://localhost:3000 -> Here works fine
- deploy one-api in the public internet, and set the enter-point to http://public.domain.com:3001 -> Here I got the error, but I have used Postman to verify the public deployment it works fine.
So please let me know how to set the insecure content.
Try to set insecure content to allow.
here is my problem:
- deploy one-api in localhost setup the enter-point to http://localhost:3000 -> Here works fine
- deploy one-api in the public internet, and set the enter-point to http://public.domain.com:3001 -> Here I got the error, but I have used Postman to verify the public deployment it works fine.
So please let me know how to set the insecure content. If your using chrome changing the site settings insecure content to allow and try if it works.
hi @armangido I have changed my web site from http to https and now it works.