Where the contents of the URL are more "/", such as: url=http://mp.weixin.qq.com?params=value(无“/”) url=http://mp.weixin.qq.com/?params=value(有“/”) Will cause "Invalid URL domain" error, why?
Where the contents of the URL are more "/", such as: url=http://mp.weixin.qq.com?params=value(无“/”) url=http://mp.weixin.qq.com/?params=value(有“/”) Will cause "Invalid URL domain" error, why?
Has anyone encountered this problem?
'/' will cause you to pass the URL of the parameter is incomplete, the SDK received the URL and your actual URL does not match, of course, will invalid domain.
This and your front-end to submit the URL to the interface of the method has a relationship, simply said that the URL encode a bit can be avoided. Some libraries such as jquery or zepto may have encode this step in the Ajax package, if you write a native Ajax, you may miss the encode, resulting in incomplete parameter delivery.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.