mirror of
https://github.com/jwinterm/monero-generator.git
synced 2026-10-17 05:11:26 +02:00
24 lines
551 B
JSON
24 lines
551 B
JSON
{
|
|
"file": "enable-cors.json",
|
|
"description": "Adds CORS support",
|
|
"required": [
|
|
"core/monero.json"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "/contrib/epee/include/net/http_server_handlers_map2.h",
|
|
"changes": [
|
|
{
|
|
"action": "add_below",
|
|
"marker": "response.m_response_comment = \"Ok\"; \\",
|
|
"parameters": {
|
|
"text": [
|
|
" response.m_additional_fields.push_back(std::make_pair(\"Access-Control-Allow-Origin\", \"*\")); \\"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|