We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The HTTP Handler func (g *Generator) ServeHTTP(w http.ResponseWriter, r *http.Request) should support CORS.
func (g *Generator) ServeHTTP(w http.ResponseWriter, r *http.Request)
E.g:
$ curl -I "http://petstore.swagger.io/v2/swagger.json" HTTP/1.1 200 OK Date: Sat, 31 Jan 2015 23:05:44 GMT Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS Access-Control-Allow-Headers: Content-Type, api_key, Authorization Content-Type: application/json Content-Length: 0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The HTTP Handler
func (g *Generator) ServeHTTP(w http.ResponseWriter, r *http.Request)
should support CORS.E.g:
The text was updated successfully, but these errors were encountered: