diff --git a/Assets/extApi/Runtime/Api.cs b/Assets/extApi/Runtime/Api.cs index f1419ab..bc41c6a 100644 --- a/Assets/extApi/Runtime/Api.cs +++ b/Assets/extApi/Runtime/Api.cs @@ -130,6 +130,9 @@ private void ListenProcess() var context = _listener.GetContext(); var contextMethod = new HttpMethod(context.Request.HttpMethod); + + context.Response.AddHeader("Access-Control-Allow-Origin", "*"); + var routeUri = context.Request.Url; var routeParameters = new Dictionary(); var target = GetRouteTarget(contextMethod, routeUri.Segments, routeParameters);