OAuth 2 flow voor imgur in Discourse plugin

You won’t be able to achieve this over http to localhost. You are recommended going to need to simulate https with a tool like https://ngrok.com/ or run your dev server in the cloud in https mode with a domain.