Index: tools/skiaserve/skiaserve.cpp |
diff --git a/tools/skiaserve/skiaserve.cpp b/tools/skiaserve/skiaserve.cpp |
index b615d443c8d1126eada0cdcf6704622e3bd65547..e0a17bfe2295d0f6206279c5c0d8480b9120ed72 100644 |
--- a/tools/skiaserve/skiaserve.cpp |
+++ b/tools/skiaserve/skiaserve.cpp |
@@ -156,12 +156,13 @@ static int SendJSON(MHD_Connection* connection, SkPicture* picture) { |
static int SendTemplate(MHD_Connection* connection, bool redirect = false, |
const char* redirectUrl = nullptr) { |
- SkString debuggerTemplate = generateTemplate(SkString("http://debugger.skia.org")); |
+ SkString debuggerTemplate = generateTemplate(SkString("https://debugger.skia.org")); |
MHD_Response* response = MHD_create_response_from_buffer( |
debuggerTemplate.size(), |
(void*) const_cast<char*>(debuggerTemplate.c_str()), |
MHD_RESPMEM_MUST_COPY); |
+ MHD_add_response_header (response, "Access-Control-Allow-Origin", "*"); |
int status = MHD_HTTP_OK; |