Skip to content

Commit

Permalink
When serving tiles, add the CORS Access-Control-Allow-Origin: * header (
Browse files Browse the repository at this point in the history
  • Loading branch information
amandasaurus authored Feb 21, 2024
1 parent a393cef commit 07e878f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ int main(int argc, char* argv[]) {
std::string outStr(pbfBlob.begin(), pbfBlob.end());
SimpleWeb::CaseInsensitiveMultimap header;
header.emplace("Content-Encoding", "gzip");
header.emplace("Access-Control-Allow-Origin", "*");
response->write(outStr,header);
};

Expand Down

0 comments on commit 07e878f

Please sign in to comment.