Feature #1442
API: CORS Settings in Backend UI
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
History
Updated by Bernhard Koschiček-Krombholz about 2 years ago
- Related to Feature #1299: API: Setting for CORS allowance in UI added
Updated by Alexander Watzinger over 1 year ago
- Subject changed from CORS Settings in Backend UI to API: CORS Settings in Backend UI
- Status changed from New to Acknowledged