(response)
| 66 | |
| 67 | @app.after_request |
| 68 | def add_cors_headers(response): |
| 69 | response.headers["Access-Control-Allow-Origin"] = "*" |
| 70 | response.headers["Access-Control-Allow-Headers"] = "Content-Type" |
| 71 | response.headers["Access-Control-Allow-Methods"] = "POST, OPTIONS" |
| 72 | return response |
| 73 | |
| 74 | |
| 75 | @app.route("/decode", methods=["POST", "OPTIONS"]) |
nothing calls this directly
no outgoing calls
no test coverage detected