structured article json first draft

This commit is contained in:
Kevin Pham
2023-11-29 00:33:46 -06:00
parent b7a012d75b
commit e5bd5df2c0
3 changed files with 153 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ import (
// from enforcing any CORS restrictions. This should run at the end of the chain.
func BypassCORS() proxychain.ResponseModification {
return func(chain *proxychain.ProxyChain) error {
chain.AddResponseModifications(
chain.AddOnceResponseModifications(
SetResponseHeader("Access-Control-Allow-Origin", "*"),
SetResponseHeader("Access-Control-Expose-Headers", "*"),
SetResponseHeader("Access-Control-Allow-Credentials", "true"),