sub2api 报错求助

2026-04-11 08:090阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

Upstream returned HTTP 502: Upstream request failed 用邮箱注册了几个好放进去,调用的时候报错这个,是要怎么解决

网友解答:
--【壹】--:

没找到跨域的设置。。。。我先睡了佬。。这有点难搞。


--【贰】--:

image1920×1012 92 KB
运维监控里看具体的上游报错信息


--【叁】--:

=============================================================================

CORS Configuration

跨域资源共享 (CORS) 配置

=============================================================================

cors:

Allowed origins list. Leave empty to disable cross-origin requests.

允许的来源列表。留空则禁用跨域请求。

allowed_origins:

Allow credentials (cookies/authorization headers). Cannot be used with “*”.

允许携带凭证(cookies/授权头)。不能与 “*” 通配符同时使用。

allow_credentials: true
搜一下


--【肆】--:

Warning: CORS allowed_origins not configured; cross-origin requests will be rejected. 为啥还有跨域问题。。

阅读全文
问题描述:

Upstream returned HTTP 502: Upstream request failed 用邮箱注册了几个好放进去,调用的时候报错这个,是要怎么解决

网友解答:
--【壹】--:

没找到跨域的设置。。。。我先睡了佬。。这有点难搞。


--【贰】--:

image1920×1012 92 KB
运维监控里看具体的上游报错信息


--【叁】--:

=============================================================================

CORS Configuration

跨域资源共享 (CORS) 配置

=============================================================================

cors:

Allowed origins list. Leave empty to disable cross-origin requests.

允许的来源列表。留空则禁用跨域请求。

allowed_origins:

Allow credentials (cookies/authorization headers). Cannot be used with “*”.

允许携带凭证(cookies/授权头)。不能与 “*” 通配符同时使用。

allow_credentials: true
搜一下


--【肆】--:

Warning: CORS allowed_origins not configured; cross-origin requests will be rejected. 为啥还有跨域问题。。

阅读全文