This question already has an answer here:
- CORS with php headers 10 answers
I've read a lot of contents on how to create a CORS request. I understand the concept and the rules though, but I haven't understand how to actually extract data from a remote server and display it in my app. I need someone to quickly write a code snippet on how this works or point me to an existing one. I work with PHP and JavaScript/jQuery. This snippet must show both client and server source code. It might just display a text or an image from the server, by examining the code, I'm sure I'll pickup from there. Thanks.