RubyGems.org

cors

1.0.0

Cross-originresourcesharing(CORS)isgreat;itallowsyourvisitorsto asynchronouslyuploadfilestoe.g.FilepickerorAmazonS3,withoutthe fileshavingtoround-tripthroughyourwebserver.Unfortunately,giving youruserscompletewriteaccesstoyouronlinestoragealsoexposesyouto maliciousintent. Tocombatharmfulusage,gooduploadservicesthatallowclient-side upload,supportamechanismthatallowsyoutovalidateandsignallupload requeststoyouronlinestorage.Byvalidatingeveryrequest,youcangive yourvisitorsaniceuploadexperience,whilekeepingthebadvisitorsat bay. TheCORSgemcomeswithsupportfortheAmazonS3RESTAPI.

installgem install cors
Authors

Kim Burgestrand

1,070 total downloads 1,070 for this version
Owners

B67b73b5b1fd84119ec788b1c3df02ad

Gemfile
gem 'cors', '~> 1.0.0'
Versions
  1. 1.0.0 October 30, 2012 (10 KB)
Development Dependencies
  1. rspec ~> 2.0