Removed cors stuff
This commit is contained in:
parent
c72142cd6f
commit
21edf8d61a
9
main
9
main
|
@ -96,15 +96,6 @@ def check_username_taken(username):
|
||||||
return "error"
|
return "error"
|
||||||
return post["id"]
|
return post["id"]
|
||||||
|
|
||||||
|
|
||||||
# Enable CORS for all origins
|
|
||||||
@app.after_request
|
|
||||||
async def add_cors_headers(response):
|
|
||||||
response.headers.add("Access-Control-Allow-Origin", "*")
|
|
||||||
response.headers.add("Access-Control-Allow-Headers", "*")
|
|
||||||
response.headers.add("Access-Control-Allow-Methods", "*")
|
|
||||||
return response
|
|
||||||
|
|
||||||
# Main page
|
# Main page
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
async def main():
|
async def main():
|
||||||
|
|
Loading…
Reference in New Issue