China Naming Network - Weather knowledge - This weather code is put in the web page, and the city can't customize it. Please ask someone for advice. Urgent!
This weather code is put in the web page, and the city can't customize it. Please ask someone for advice. Urgent!
this is because iframe automatically blocks cross-domain reading of Cookie ie. If you don't believe me, after you click Customize, look at the status below and there is a red-sign. Just click and see for yourself. You can minimize it, so you may read it. But it is impossible for everyone to lower their IE.
iframe cross-domain access cookie solution to google solution, and finally find a way, aiming at iframe internal page operation:
1. response.add header ("p3p", "CP = caopsaour"); Add
2. Open IIS
management tool-> Select a website-> Properties-> http header, add an HTTP header
and then enter a header name: P3P
Enter header content: CP=CAO PSA OUR
Problem solving.
why not your own IIS? You'd better look for cross-domain Cookie about Iframe.