iOS继续阻止HTTP请求,即使已禁用ATS。

huangapple go评论133阅读模式
英文:

IOS continues to block HTTP requests even though ATS has been disabled

问题

以下是您要翻译的部分:

"this is so confusing, I have legacy app cordova that need to do some request to http url , I know IOS ATS to block that request, and I have done everything I read from the internet
enable like code below

	<dict>
	<key>NSAllowsArbitraryLoads</key>
	<true/>
	<key>NSAllowsArbitraryLoadsInWebContent</key>
	<true/>
</dict>

and this is from xcode
iOS继续阻止HTTP请求,即使已禁用ATS。"

请问还有其他需要翻译的部分吗?

英文:

this is so confusing, I have legacy app cordova that need to do some request to http url , I know IOS ATS to block that request, and I have done everything I read from the internet
enable like code below

	&lt;dict&gt;
	&lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
	&lt;true/&gt;
	&lt;key&gt;NSAllowsArbitraryLoadsInWebContent&lt;/key&gt;
	&lt;true/&gt;
&lt;/dict&gt;

and this is from xcode
iOS继续阻止HTTP请求,即使已禁用ATS。

is there any thing that i missed?

PS: yes it works if i put the url into NSExceptionDomains but the requirement is i need to open this to any http url because some client still have http url not https

答案1

得分: 0

I found the problem, it's already stated in Apple's documentation. iOS继续阻止HTTP请求,即使已禁用ATS。

英文:

finally i found the problem, its already state in apple documentation iOS继续阻止HTTP请求,即使已禁用ATS。

huangapple
  • 本文由 发表于 2023年5月13日 09:12:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76240682.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定