Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@anovis
Copy link
Collaborator

@anovis anovis commented Dec 12, 2023

closes #469

@app.route('/custom_cors', cors=CORSConfig(allow_origin='localhost', allow_methods=["GET"], extra_headers={"X-TEST":"X-HEADER-VALUE"}))
def custom_cors():
    return jsonify('localhost is allowed with GET method')

@codecov
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1fdcebf) 89.61% compared to head (94a283d) 89.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #471      +/-   ##
==========================================
+ Coverage   89.61%   89.63%   +0.01%     
==========================================
  Files          67       67              
  Lines        6204     6212       +8     
==========================================
+ Hits         5560     5568       +8     
  Misses        644      644              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anovis anovis merged commit d35acc7 into main Dec 12, 2023
@anovis anovis deleted the cors-example branch December 12, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PUT request getting blocked by CORS

2 participants