Protect your website or application from abuse with configurable secret headers
Secret headers are HTTP headers that are sent to your backend server without being exposed to the client.
This feature allows you to send sensitive information to your backend server, such as authentication tokens or API keys, to authorize requests that come from Edgee.
from flask import request, jsonify@app.before_requestdef validate_edgee_headers(): edgee_token = request.headers.get('X-Edgee-Auth') if not edgee_token or edgee_token != 'your-secret-api-key': return jsonify({'error': 'Unauthorized'}), 401