Hey there – sharing a tiny library we wrote to deal with the Origin header of a request in the context is a CORS context. It handles basic wildcard (*) matching, and should cover most use-cases.
Hope it's useful to someone else: https://github.com/posterity/origin Cheers. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e788b244-db7f-4fd4-bb58-749bceb7e423n%40googlegroups.com.