adds header

This commit is contained in:
SuperNovaa41 2024-01-31 18:54:39 -05:00
parent 444f49e85d
commit 86e5544572

View File

@ -1,6 +1,5 @@
#include <crow.h>
#include <crow/app.h>
#include <fstream>
#include "isbn-interaction.h"
@ -24,6 +23,8 @@ int main()
CROW_ROUTE(app, "/add/<string>")
([](std::string isbn)
{
crow::response response(add_new_book(isbn));
response.add_header("Access-Control-Allow-Origin", "*");
return crow::response(add_new_book(isbn));
});