Cloud
REST API Proxy Server Module
Note
Features: - Serves static HTML frontend - Handles CORS preflight requests - Proxies API requests to backend service - Adds necessary CORS headers to responses
- server_8081.serve_html() str | flask.Response
Serve the frontend HTML file with CORS headers.
- Returns:
HTML content or error response
- Return type:
Union[str, Response]
- Raises:
IOError – If the HTML file cannot be read
- server_8081.handle_options() flask.Response
Handle CORS preflight requests.
- Returns:
Empty response with CORS headers
- Return type:
Response
- server_8081.proxy_mission() flask.Response
Proxy mission requests to backend API with CORS support.
- Returns:
Proxied response from backend with CORS headers
- Return type:
Response
Note
Preserves all headers and status codes from the backend service while adding required CORS access headers