百度Site查询 - API

# 目标服务器是否允许跨域请求查询接口 #
  • Method: GET

# 请求地址 #
https://api.weboss.hk/cors/api.php
# 参数 #
  • url //要查询网址,必填)

  • # 返回数据 #
    { "code": 200, "msg": "检测完成", "data": { "target_url": "https://api.github.com/users", "is_cors_supported": true, "cors_headers": { "access-control-allow-origin": "*", "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" }, "allow_origin": "*", "allow_methods": "", "allow_headers": "", "max_age": "", "expose_headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "allow_credentials": false, "request_status": "HTTP 状态码:200", "error": "", "allow_origin_note": "允许所有源跨域访问(不安全)" } }

    # 示例 #
    http://api.weboss.hk/cors/api.php?url=https://api.github.com/users