Skip to content

Instantly share code, notes, and snippets.

@MaxenceG2M
MaxenceG2M / gist:2eb6541e29ac0d075338b884e8873b6d
Created July 20, 2016 21:14 — forked from zikani03/gist:7c82b34fbbc9a6187e9a
Simple Cors Filter for Spark Java
import java.util.HashMap;
import spark.Filter;
import spark.Request;
import spark.Response;
import spark.Spark;
/**
* Really simple helper for enabling CORS in a spark application;
*/
public final class CorsFilter {