It is necessary to change the design of a third-party site (add CSS), while maintaining functionality on the client side. Can this be done using iframe and jQuery?

    3 answers 3

    Impossible: same origin policy .

      In the frame it is impossible, using jquery you can cross-domain-ajax .

      • What does this have to do with the question? - Sergiks
      • one
        load a third-party site not into the iframe, but into the DOM. The solution allows you to make a cross domain Ajax request. - AlekseyB

      @sergiks Strange. Stack Overflow does not think so.
      https://stackoverflow.com/questions/6960406/add-css-to-iframe
      Only here with dynamic ID frames problems will arise (for example, widgets from social networks.)

      • one
        1. We read in general about the Same Origin Policy. 2. We look at EDIT about SOP in the mentioned thread on SO. 3. ...? 4. Profit! - Sergiks