TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Preetham Holenarasipuradevera
NA
75
12.4k
The 'Access-Control-Allow-Origin' header contains multiple values
Apr 1 2021 11:06 PM
I am facing this problem when i send any request to any method
here is my startup.ts
public void Configuration(IAppBuilder app)
{
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888
HttpConfiguration config = new HttpConfiguration();
app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll);
EnableCorsAttribute cors = new EnableCorsAttribute("*", "*", "*");
var provider = new Myauthenticationserverprovider();
OAuthAuthorizationServerOptions options = new OAuthAuthorizationServerOptions
{
AllowInsecureHttp = true,
TokenEndpointPath = new PathString("/token"),
AccessTokenExpireTimeSpan = TimeSpan.FromDays(1),
Provider=provider
};
app.UseOAuthAuthorizationServer(options);
app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions());
config.EnableCors(cors);
WebApiConfig.Register(config);
}
i am able to access the token but problem with passing token in header
Reply
Answers (
1
)
Learn - .Net Core
how set Validation in Combobox