4,828 questions
unless you are using a javascript ajax in a webview, android apps do not use CORS. you can configure the webview to ignore CORS for file based urls.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
builder.Services.AddCors(options =>
{
options.AddDefaultPolicy(builder =>
{
builder.WithOrigins("").AllowAnyHeader().AllowAnyMethod().AllowCredentials();
});
});
I am using a android app
how to set the orgin? there is no origin of mine?
unless you are using a javascript ajax in a webview, android apps do not use CORS. you can configure the webview to ignore CORS for file based urls.