aboutsummaryrefslogtreecommitdiffstats
path: root/api/app.py
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-09-18 19:25:02 -0700
committerPinapelz <donaldshan1@outlook.com>2023-09-18 19:25:02 -0700
commit011365dac81888cc1f2fb43f5c69ce0a92949ee3 (patch)
tree45840cb8a18db68ee019ad0298dc30da7a5b4d8b /api/app.py
parentf0aacde51c469f1479187ba49e04d64f24444e5f (diff)
enable CORS
Diffstat (limited to 'api/app.py')
-rw-r--r--api/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/app.py b/api/app.py
index e16acac..24d4955 100644
--- a/api/app.py
+++ b/api/app.py
@@ -1,4 +1,5 @@
from flask import Flask, render_template, jsonify, request
+from flask_cors import CORS
import configparser
import psycopg2
from psycopg2 import Error
@@ -7,6 +8,7 @@ import secrets
import string
app = Flask(__name__)
+CORS(app)
class PostgresHandler:
def __init__(self, username: str, password: str, host_name: str, port: int, database: str):
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage