Skip to content

Instantly share code, notes, and snippets.

View dev-ahmedhany's full-sized avatar
:octocat:
Never Stop Dreaming

Ahmed Hany dev-ahmedhany

:octocat:
Never Stop Dreaming
View GitHub Profile
@dev-ahmedhany
dev-ahmedhany / cloudflare-worker-quran-ksu.js
Created February 26, 2023 05:10
cloudflare worker quran ksu project
// We support the GET, POST, HEAD, and OPTIONS methods from any origin,
// and allow any header on requests. These headers must be present
// on all responses to all CORS preflight requests. In practice, this means
// all responses to OPTIONS requests.
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET,HEAD,POST,OPTIONS",
"Access-Control-Max-Age": "86400",
}
@dev-ahmedhany
dev-ahmedhany / cloudflare-worker-egybest-crosproxy.js
Created February 26, 2023 05:06
cloudflare worker egybest crosproxy.js
// We support the GET, POST, HEAD, and OPTIONS methods from any origin,
// and allow any header on requests. These headers must be present
// on all responses to all CORS preflight requests. In practice, this means
// all responses to OPTIONS requests.
const corsHeaders = {
"Access-Control-Allow-Origin": "https://cinema2gether.herokuapp.com",
"Access-Control-Allow-Methods": "GET,HEAD,POST,OPTIONS",
"Access-Control-Max-Age": "86400",
}
@dev-ahmedhany
dev-ahmedhany / cloudflare-worker-website-proxy.js
Created February 26, 2023 04:57
cloudflare worker website proxy js code
// We support the GET, POST, HEAD, and OPTIONS methods from any origin,
// and allow any header on requests. These headers must be present
// on all responses to all CORS preflight requests. In practice, this means
// all responses to OPTIONS requests.
const corsHeaders = {
"Access-Control-Allow-Origin": "https://medium.dev-ahmedhany.workers.dev",
"Access-Control-Allow-Methods": "GET,HEAD,POST,OPTIONS",
"Access-Control-Max-Age": "86400",
}
import * as React from "react";
function SvgComponent({
id,
name,
university,
signature,
leadUniversity,
date,
style,