Skip to content

Commit

Permalink
Fix:CORS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgutgutia committed Apr 23, 2024
1 parent 6a170c0 commit 44dfc70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


app= Flask(__name__)
#CORS(app)
CORS(app, resources={r"/*": {"origins": "https://contactify.codechefvit.com", "methods": ["GET", "POST"]}})
CORS(app)
#CORS(app, resources={r"/*": {"origins": "https://contactify.codechefvit.com", "methods": ["GET", "POST"]}})
app.config['MAX_CONTENT_LENGTH'] = 1024*1024*1024

# def check_origin():
Expand Down

0 comments on commit 44dfc70

Please sign in to comment.