Skip to content

Instantly share code, notes, and snippets.



Created Nov 18, 2019
What would you like to do?
fuck you
# -*- coding: utf-8 -*-
from flask import Flask, jsonify
app = Flask(__name__)
# 跨域支持
def after_request(resp):
resp.headers['Access-Control-Allow-Origin'] = '*'
return resp
def index():
return jsonify({"result":True,"message":"牛逼了!"})
#, debug=True), debug=True,ssl_context='adhoc')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.