Skip to content

Commit 7be88c3

Browse files
committed
Correcion en CORS
1 parent 0e34697 commit 7be88c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
# Inicializa Flask
1616
app = Flask(__name__)
17-
CORS(app)
17+
CORS(app, resources={r"/*": {"origins": ["https://app-agenda-sdc.onrender.com"]}})
18+
1819

1920
# Inicializa SocketIO
2021
socketio = SocketIO(app, cors_allowed_origins="*")

0 commit comments

Comments
 (0)