CORS - Access-control-allow-origin header not present [SOLVED]
In this tutorial we will study how to make the Web Api publically available for any domain.
Add following in your Wb.Config file in System.WebServer
Add following in your Wb.Config file in System.WebServer
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
how to active it in 000webhost?
ReplyDeleteSAME QUESTION HERE
ReplyDeleteIN GO DADDY OR WORDPRESS
Hi I am using JSP for a Iframe. I am having the same issue but where should i copy this piece of code as i dont have web.config.
ReplyDeleteSame issue
Deleteit Works in sites.google.com "classic" for add external archives to blogger?
ReplyDeletenot solved buddy .....as i am also using angularjs
ReplyDeletesame here
DeleteGod Bless you bro, it solved my problem!
ReplyDelete
ReplyDeleteFantastic post.
Really enjoyed reading it and it held my attention all the way through! Keep it up.
Read my Latest Post
Can you please help me on how to do the same in an angular application to fetch ssrs reports..thank you!!
ReplyDeletehow to add this header in .net core api
ReplyDelete