You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a problem with CORS when I am trying to call my api from .local address
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
The text was updated successfully, but these errors were encountered:
Hello, I have a problem with CORS when I am trying to call my api from .local address
I use mux and my setup for CORS is,
`c := cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowCredentials: true,
AllowedMethods: []string{"GET", "POST", "DELETE"},
`
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
The text was updated successfully, but these errors were encountered: