Struggling to create an html file for monitoring remote site activities, specifically on github.com. I want to keep it simple and only use a flat file, making direct requests from JS to github's API. Here's the thought process:
- Decided to use jsonp for read access with GET requests.
- Realized jsonp doesn't support basic authentication.
- Tried Github's OAuth instead of basic auth.
- Encountered issues with browser not allowing redirection to local resources due to security reasons.
- Attempted loading Github's oauth in an iFrame for necessary code.
- Failed to access child iframe content on another domain, unable to retrieve final URL without redirecting back to local resource.
- Considered using Cross-Origin Resource Sharing (CORS) with basic auth.
- CORS failed as servers don't accept null origin headers from file:/// URLs.
Seeking suggestions for successful authentication to this API from a single, local HTML file- whether through alternative methods or creative solutions!