Skip to content

Commit

Permalink
adding cors (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollman authored Apr 5, 2024
1 parent 67ea67d commit 56aa0b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emannotationschemas/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from flask import Blueprint, Flask, jsonify, redirect, url_for
from flask_restx import Api
from flask_cors import CORS

from emannotationschemas.blueprint_app import api_bp
from emannotationschemas.config import configure_app
Expand All @@ -12,14 +13,14 @@


def create_app(test_config=None):

# Define the Flask Object
app = Flask(
__name__,
instance_path=get_instance_folder_path(),
static_url_path="/schema/static",
instance_relative_config=True,
)
CORS(app, expose_headers="WWW-Authenticate")

logging.basicConfig(level=logging.DEBUG)

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ jsonschema<4.0
SQLAlchemy<1.4
shapely==2.0.3
geoalchemy2>=0.11.1, <0.12.0
flask-cors==3.0.10

0 comments on commit 56aa0b6

Please sign in to comment.