Skip to content

Instantly share code, notes, and snippets.

View TimothyLoyer's full-sized avatar
👨‍🚀
my brain is in the stars

Tim Loyer TimothyLoyer

👨‍🚀
my brain is in the stars
View GitHub Profile

Putting all the knowledge I find on CORS, needs of various HTTP verbs, and specific browser needs here.

Options

Access-Control-Allow-Headers should be set to "*" only for OPTIONS requests. If you return it for POST requests Chrome will cancel the request.

Works for GET preflight: Access-Control-Allow-Origin: {origin} Access-Control-Allow-Methods: GET, POST, PUT, DELETE Access-Control-Allow-Headers: Authorization, Content-Type

@TimothyLoyer
TimothyLoyer / VideoDNA.bat
Last active August 29, 2015 14:04
12 Stars Media Vidpainter
@echo off
echo ____ _____ ______ _________ ________ ______ ______
echo /___/\ /_____/\ /_____/\ /________/\/_______/\ /_____/\ /_____/\
echo \_::\ \ \:::_:\ \ \::::_\/_\__.::.__\/\::: _ \ \\:::_ \ \ \::::_\/_
echo \::\ \ _\:\^| \:\/___/\ \::\ \ \::(_) \ \\:(_) ) )_\:\/___/\
echo _\: \ \__ /::_/__ \_::._\:\ \::\ \ \:: __ \ \\: __ `\ \\_::._\:\
echo /__\: \__/\\:\____/\ /____\:\ \::\ \ \:.\ \ \ \\ \ `\ \ \ /____\:\
echo \________\/_\_____\/_____\_____\/__ \__\/___ \__\/\__\/ \_\/ \_\/ \_____\/
echo.
@TimothyLoyer
TimothyLoyer / iOS Upload Bug.md
Last active August 29, 2015 14:04
iOS 7 Multiple-File Upload Issue

Description

Files uploaded with Safari on iOS 7 fail or result in 0 kilobyte files on the server.

Conditions

  • Using any device running iOS 7
  • Browsing from Safari or Chrome
  • When using a multiple-upload form (even if only one file is uploaded)