Skip to content

Commit

Permalink
Merge pull request #93 from GSA/dev
Browse files Browse the repository at this point in the history
Merge Dev to Staging
  • Loading branch information
mark-meyer authored Sep 5, 2023
2 parents 269b4d6 + fb8acdc commit a66df72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"http://localhost",
"http://localhost:5173",
"http://127.0.0.1:5173",
"https://889.smartpay.gsa.gov"
]


Expand All @@ -30,7 +31,7 @@ def create_app(name=__name__):
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_origin_regex='https://federalist.*\.sites\.pages\.cloud\.gov',
allow_origin_regex=r'https://federalist.*\.sites\.pages\.cloud\.gov',
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand All @@ -56,7 +57,7 @@ async def search_v3(
return response
except Exception as exception:
logging.exception(exception)
raise HTTPException(status_code=400, detail="Problem connecting to SAM.gov")
raise HTTPException(status_code=400, detail="Problem connecting to SAM.gov") # noqa E501

return app

Expand Down

0 comments on commit a66df72

Please sign in to comment.