Project

General

Profile

Feature #1442

API: CORS Settings in Backend UI

Added by Bernhard Koschiček-Krombholz 9 months ago. Updated 12 days ago.

Status:
Acknowledged
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
2021-01-07
Estimated time:

Description

For the new version of the API, the CORS settings moved also a little bit. I changed it from a decorator to specific path mapping (/api/*). The CORS options are in /openatlas/api/v02/routes.py and are initialized with the app:

cors = CORS(app, resources={r"/api/*": {"origins": app.config['CORS_ALLOWANCE']}})

This ticket is the remainder, that more API options should make it to the backend (Like ALLOWED_IPS)


Related issues

Related to Feature #1299: API: Setting for CORS allowance in UI Closed2020-07-07Actions

History

#1

Updated by Bernhard Koschiček-Krombholz 9 months ago

  • Related to Feature #1299: API: Setting for CORS allowance in UI added
#2

Updated by Alexander Watzinger 12 days ago

  • Status changed from New to Acknowledged
  • Subject changed from CORS Settings in Backend UI to API: CORS Settings in Backend UI

Also available in: Atom PDF