How to authenticate a request from an iframe?

I need to authenticate a request being sent from an iframe (which is being created through javascript) on a page. The authentication will be done with basic http authentication. I’ve tried doing
For More Information Please Refer:


You May Also Like to Read: