CORS policy failure error
I think there is another problem here, @cpradio .
I was previously running your This is misleading, I’ve reverted to the force-http branch and whilst chasing down another but on the forum I thought I move to the master branch.force-https branch and the issue is still there.
Our users are now reporting that they can’t insert memes. Looking at the browser console I see this error.
Access to XMLHttpRequest at 'https://api.imgflip.com/caption_image?username=imgflip_hubot&password=imgflip_hubot&template_id=87743020&text0=Work?&text1=Fail?' from origin 'https://sandbox.cpradio.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Steps to reproduce
I am able to reproduce this on your sandbox at …
https://sandbox.cpradio.org/t/imgflip-plugin-example/54
…where I simply tried to insert a meme and got the error above. Screen shot of the actual console error…
Environment
I’m running the very latest tests-passed version of Discourse v2.3.0.beta2 +129.
I’m using Chrome Version 72.0.3626.96 (Official Build) (64-bit) on Linux - but I’ve also tested on Firefox and the same the problem occurs.
Please let me know if you need any more information.