View Single Post
Old 11-17-2015, 10:24 PM   #6
Velocity
Doing the wrong thing the right way since 2010.
Site and Game Administrator
AdministratorRetired StaffDeveloperFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Velocity's Avatar
 
Join Date: Jul 2007
Posts: 1,812
Default Re: Imgur Screenshots Not Working

I guess I should have made it slight more clear.

The issue with Imgur API is moreso of the security sandbox flash uses.

When a connection to a url is preformed, flash first checks a file called crossdomain.xml to see if flash is allowed to access pages/files across domains. For the longest time, Imgur simply used a wildcard which allowed any site to access the site. But with recent changes to the cross domain file, only connections coming from the Imgur domain itself can access pages on Imgur.

The issue doesn't arise on local playback/testing due to local sandbox allowing connections to any site if allowed, since the file isn't being hosted from a domain. After the game is uploaded to FFR, flash does check crossdomain.xml and aborts.

This is also why the limit is reached since I use "-1" as the default values in the Game Imgur API and you need atleast "10" credits to submit a screenshot.
Velocity is offline   Reply With Quote