enable-cors extension added

This commit is contained in:
Petar Mitchev
2016-09-24 00:33:22 +03:00
parent 0ff6e62b67
commit 235c75efae
2 changed files with 25 additions and 1 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
{
"extensions": [
"core/monero.json",
"blockchain-explorer.json"
"blockchain-explorer.json",
"enable-cors.json"
],
"base_coin": {
"name": "monero",
+23
View File
@@ -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\", \"*\")); "
]
}
}
]
}
]
}