Top. location. href does not have permission solution _ javascript skills
Source: Internet
Author: User
I didn't seem to have encountered this problem before, or maybe I didn't care about it. My blog content pages are all judged. The rule is, if top. if location is not a content page, you can jump to the content page. If someone saves my webpage or uses iframe to include it, the page will jump directly to my article page, the previous test was successful. Today, I saw a website containing my page. I think my homepage has nothing to do with iframe, but after I clicked the page, I found that I did not enter my website, the error message "no access permission" is displayed when you check the javascript error message. The problem persists after the local test. It seems that the problem is not caused by the other website, but by my website, is top. location. href problems are mostly used on the Internet in the same way as I did. After searching for a long time, I finally got a solution:
This is a cross-origin problem. Add the following sentence,
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.