mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 01:36:09 +00:00
[feature][python-flask] Add CORS support to python-flask server (#8472)
* Add CORS support to python-flask server generator * Documentation update and CORS support for other generators using the same base class * Trivial sample changes
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import os
|
||||
import connexion
|
||||
|
||||
|
||||
def main():
|
||||
options = {
|
||||
"swagger_ui": True
|
||||
@@ -12,4 +11,5 @@ def main():
|
||||
arguments={'title': 'OpenAPI Petstore'},
|
||||
pythonic_params=True,
|
||||
pass_context_arg_name='request')
|
||||
|
||||
app.run(port=8080)
|
||||
|
||||
Reference in New Issue
Block a user