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

Problem with .local url #122

Closed
spartakos87 opened this issue Nov 26, 2021 · 3 comments
Closed

Problem with .local url #122

spartakos87 opened this issue Nov 26, 2021 · 3 comments

Comments

@spartakos87
Copy link

Hello, I have a problem with CORS when I am trying to call my api from .local address
Screenshot 2021-11-26 185850 (2)

I use mux and my setup for CORS is,
`c := cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowCredentials: true,
AllowedMethods: []string{"GET", "POST", "DELETE"},

	// Enable Debugging for testing, consider disabling in production
	Debug: true,
})

`
Do I need any special set up for this?
I find out that I need to set up the header 'Access-Control-Allow-Private-Network' as true, how can I set up this one?
Thanks

@cvermilion
Copy link
Contributor

Hi @spartakos87, Options.AllowPrivateNetwork was added in #127, which may be what you need.

@johnmaguire
Copy link

Ran into this as well. @rs Any idea when the next release might get tagged?

@rs
Copy link
Owner

rs commented Dec 27, 2022

Tagged

@rs rs closed this as completed Aug 27, 2023
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

No branches or pull requests

4 participants