解决Apifox 访问外网接口的403问题

1、网页版Apifox访问外网地址https://webket.jp/pc/member/login?fc=00396&ac=8001代码错误

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>

<HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD>

<BODY>
    <H1>403 ERROR</H1>
    <H2>The request could not be satisfied.</H2>
    <HR noshade size="1px">
    Request blocked.
    We can't connect to the server for this app or website at this time. There might be too much traffic or a
    configuration error. Try again later, or contact the app or website owner.
    <BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
    <BR clear="all">
    <HR noshade size="1px">
    <PRE>
Generated by cloudfront (CloudFront)
Request ID: WrRcjc_1vkhcAP7zkQtNxxoY02v3bsGwmwM4Zvr7vHxygIOxn-qCbQ==
</PRE>
    <ADDRESS>
    </ADDRESS>
</BODY>

</HTML>

2、开始以为是Head的配置问题,因为postman访问成功;经过各种尝试配置仍然不成功。

3、然后看到了下图选项“外部程序”,联想到是网络代理的问题。

4、所以下载了PC端,安装完成发现“设置”中多了一个模块“网络代理”;

5、按照上图配置之后访问,仍然不正确,然后尝试下面的设置竟然成功了

6、去网站下载SSL证书

7、将密钥复制进6的文本框

8、成功返回Response

<html lang="ja">

<head>
	<script>
		(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KZXZ2BN');
	</script>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="description" content="【Webket】マイページ - 購入履歴" />

	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<meta name="format-detection" content="telephone=no">

	<title>【Webket】マイページ - 購入履歴</title>
	<link rel="stylesheet" type="text/css" href="/pc/common/css/swiper.css" />





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值