summaryrefslogtreecommitdiff
path: root/include/cors_preflight.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cors_preflight.hpp')
-rw-r--r--include/cors_preflight.hpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/cors_preflight.hpp b/include/cors_preflight.hpp
deleted file mode 100644
index b7272229b1..0000000000
--- a/include/cors_preflight.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#pragma once
-
-#include "app.hpp"
-#include "http_request.hpp"
-#include "http_response.hpp"
-
-namespace cors_preflight
-{
-inline void requestRoutes(App& app)
-{
- BMCWEB_ROUTE(app, "<str>")
- .methods(boost::beast::http::verb::options)(
- [](const crow::Request& /*req*/,
- const std::shared_ptr<bmcweb::AsyncResp>&, const std::string&) {
- // An empty body handler that simply returns the headers bmcweb
- // uses This allows browsers to do their CORS preflight checks
- });
-}
-} // namespace cors_preflight