Skip to content
Snippets Groups Projects
Commit 5a233e68 authored by Chris Hines's avatar Chris Hines
Browse files

don't add CORS at the flask layer

parent e09dfdd9
No related branches found
No related tags found
4 merge requests!77Revert "disable agressive kill and restart",!35Dev,!22Dev,!20Dev
Pipeline #10199 failed
import os
from flask import Flask, request, session
from flask_restful import Api, Resource
from flask_cors import CORS, cross_origin
#from flask_cors import CORS, cross_origin
from .tunnelstat import SSHSession
app = Flask(__name__)
......@@ -22,7 +22,7 @@ if not app.config['LOCAL_DEV']:
app.config['APPLICATION_ROOT'] = '/tes'
api = Api(app)
sshsessions = {}
CORS(app, supports_credentials=True, origin="*")
#CORS(app, supports_credentials=True, origin="*")
islocal = True
from . import apiendpoints
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment