Removed cors stuff

This commit is contained in:
Tracker-Friendly 2024-02-26 18:59:13 +00:00
parent c72142cd6f
commit 21edf8d61a
1 changed files with 0 additions and 9 deletions

9
main
View File

@ -96,15 +96,6 @@ def check_username_taken(username):
return "error"
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
@app.route("/")
async def main():