Traditional Culture Encyclopedia - Weather forecast - This weather code is placed in the webpage, and the city cannot customize it. Please ask someone for advice. Urgent!

This weather code is placed in the webpage, and the city cannot customize it. Please ask someone for advice. Urgent!

This is because cross-domain reading of Cookie ie by iframe is automatically blocked. If you don't believe me, look at the status below. There is a red sign. Just click and have a look yourself. You can minimize it, so you can read it. But it is impossible for everyone to lower IE.

Iframe cross-domain access cookie solution to google solution, and finally find a way for iframe internal page operation:

1. Response. AddHeader("P3P ","CP = Cao psaour "); Add to header

2. Open IIS

Administrative tools-> select website-> properties -> http header, and add http header.

Then enter the name: P3P.

Enter header content: CP=CAO PSA OUR.

Problem solved.

Why not your own list? You'd better look for cross-domain Cookie about Iframe.