```
from flask import Flask,jsonify
app = Flask(__name__)
@app.route('/')
def index():
headers = {
'Access-Control-Allow-Origin': '*'
}
return jsonify({"name":"chengchao"}),200,headers
if __name__ == "__main__":
app.run(debug=True)
```