COrs
This commit is contained in:
@@ -11,7 +11,10 @@ from flask import (
|
||||
send_from_directory,
|
||||
request,
|
||||
)
|
||||
from flask_cors import CORS, cross_origin
|
||||
|
||||
app = Flask(__name__)
|
||||
cors = CORS(app) # allow CORS for all domains on all routes.
|
||||
|
||||
SWAGGER_URL = '/api/docs' # URL for exposing Swagger UI (without trailing '/')
|
||||
API_URL = 'http://petstore.swagger.io/v2/swagger.json' # Our API url (can of course be a local resource)
|
||||
|
||||
Reference in New Issue
Block a user