Should it be able to do this? That question brings us to our first area of concern - pop-ups and dialog boxes. If you have alerts in your JS files like I do, you should have seen that each individual file triggers an alert at the top level of the browser. Refreshing the host page, you should now see two iframes, each with the content of our individual HTML files. This will become important in the cookies section below. Please note that we use localhost for the hosted-client and 127.0.0.1 for the other. We can do this using node’s http library to listen to and serve from two different ports. To simulate executing code from a different origin, we are going to set up two node servers - one which we’ll call the host and second which we will call the client. Step 1: Setting up the servers for our demo application
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |