rairo commited on
Commit
a4c03d2
·
verified ·
1 Parent(s): 475526c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -33,7 +33,11 @@ from google.genai import types
33
  # 1) CONFIG & INIT
34
  # -----------------------------------------------------------------------------
35
  app = Flask(__name__)
36
- CORS(app)
 
 
 
 
37
 
38
  # --- Firebase ---
39
  try:
 
33
  # 1) CONFIG & INIT
34
  # -----------------------------------------------------------------------------
35
  app = Flask(__name__)
36
+ CORS(app, resources={r"/*": {
37
+ "origins": "*",
38
+ "allow_headers": ["Content-Type", "X-Reddit-User", "X-Reddit-Id"],
39
+ "methods": ["GET", "POST", "OPTIONS"]
40
+ }})
41
 
42
  # --- Firebase ---
43
  try: