Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow header and set header in client #226

Merged
merged 3 commits into from
Feb 12, 2022
Merged

Conversation

Stebalien
Copy link
Member

need send Authorization header to remote exec cmds.
allow header and support set header value in client

#222 with an extra commit.

@Stebalien Stebalien merged commit 40b8fdd into master Feb 12, 2022
@Stebalien Stebalien deleted the feat/support_set_header branch February 12, 2022 01:27
@mar1n3r0
Copy link

We could add the default allowed headers to [reforigin_test](

func originCfg(origins []string) *ServerConfig {
)

func originCfg(origins []string) *ServerConfig {
	cfg := NewServerConfig()
	cfg.SetAllowedOrigins(origins...)
	cfg.SetAllowedMethods("GET", "PUT", "POST")
        cfg.AddAllowedHeaders("Authorization", "Content-Type", "Content-Disposition") // etc any other sane defaults
	cfg.AllowGet = true
	return cfg
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants