Permalink
Browse files

Add CORS header

  • Loading branch information...
gertjaap committed Jan 17, 2018
1 parent 7b41d1c commit 2d3011484ff7fecde95912aadd928c07abdd9900
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/httpserver.cpp
@@ -638,7 +638,8 @@ void VtcBlockIndexer::HttpServer::run()
auto settings = make_shared< Settings >( );
settings->set_port( 8888 );
settings->set_default_header( "Connection", "close" );

settings->set_default_header( "Access-Control-Allow-Origin", "*" );

Service service;
service.publish( addressBalanceResource );
service.publish( addressTxosResource );

0 comments on commit 2d30114

Please sign in to comment.