We have a simple http service running using the net/http package and I
tried setting the Access-Control-Allow-Origin header value as in:
w.Header().Set("Access-Control-Allow-Origin", "*")
and when I do so the client side gets an error: "The
'Access-Control-Allow-Origin' header contains multiple values"
So it seems somewhere else the request origin is already added to the
header although I can't find any mention of this in the docs.
What's the correct method for setting this header value so that it
overrides what's there already?
Thanks for any pointers.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.