You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can fix this in the Web Startup.cs configure services by adding this
services.AddCors();
services.AddMvc();
and in Configure() method:
app.UseCors(builder => builder
.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader());
However, no data is being returned. Ive added admin user and did a refrech all cache
Hi, I think you are mixing up the website (openchargemap.org) with the API (api.openchargemap.io) - the ocm-system code includes both and you want to run the OCM.API.Web project
Access to XMLHttpRequest at 'http://localhost/OCM.Web/site/v3/poi/?client=ocm.app.ionic.8.6.1-dev&verbose=false&output=json&includecomments=true&maxresults=500&compact=true&boundingbox=(14.556709228565467,121.03600634182732),(14.567072649698403,121.04612005817103)' from origin 'http://localhost:8101' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
The text was updated successfully, but these errors were encountered: