+ 1

How to add a element from other website to my website?

Is there any way to add an element from another website to my website, I tried to do that by jquery .load function, but load function is not working

17th Sep 2018, 9:21 AM
MD RANA Islam
MD RANA Islam - avatar
2 Réponses
+ 2
First make sure that all its ok with .load call (params)... Next you want fetch another web page on another server BUT other server send CORS-enabler headers? If its dont send a valid Allow-Origin header it dont support CORS and for security reason you cannot load data (in normal way)
17th Sep 2018, 9:56 AM
KrOW
KrOW - avatar
- 1
Maybe with iframe? (HTML)
17th Sep 2018, 9:57 AM
Alexander Santos
Alexander Santos - avatar