Skip to content

Instantly share code, notes, and snippets.

Avatar
😋

Jörn Berkefeld JoernBerkefeld

😋
View GitHub Profile
@JoernBerkefeld
JoernBerkefeld / index.html
Created Oct 6, 2015 — forked from davidwkeith/index.html
Link directly to custom protocol handlers for mobile, without worrying if the user has your App installed. Licensed under the WFTPL http://www.wtfpl.net/txt/copying/
View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>
View S3-CORS-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>