This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a simple CORS proxy with Cloudflare Workers | |
* to bypass cors restrictions in the browser. | |
* Example Usage: https://<worker_subdomain>.workers.dev/https://postman-echo.com/get?foo1=bar1&foo2=bar2 | |
*/ | |
addEventListener('fetch', event => | |
event.respondWith(handleRequest(event.request)) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Redirect</title> | |
<script type="text/javascript"> // <![CDATA[ | |
// iPhone or iPad Version: | |
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i))) { | |
window.location = "https://itunes.apple.com/us/app/fkcc/id1364772616?mt=8"; | |
} |