mirror of
https://github.com/jwinterm/monero-generator.git
synced 2026-10-17 05:11:26 +02:00
enable-cors extension added
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extensions": [
|
||||
"core/monero.json",
|
||||
"blockchain-explorer.json"
|
||||
"blockchain-explorer.json",
|
||||
"enable-cors.json"
|
||||
],
|
||||
"base_coin": {
|
||||
"name": "monero",
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"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_above",
|
||||
"marker": "response.m_response_comment = \"Ok\"; \\",
|
||||
"parameters": {
|
||||
"text": [
|
||||
" response.m_additional_fields.push_back(std::make_pair(\"Access-Control-Allow-Origin\", \"*\")); "
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user