I'm trying to make an AJAX request to the Instagram API, but receive this error:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
This is because I am using http rather than https for my local environment. For production, I am using https.
This problem isn't just related to Instagram, this is a problem for any API that uses OAuth2, so how do people address this general issue?