Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I did build a MVC 4 Web API and got it work cross domain by allowing all origin. Now I would like to implement a custom security for my api but I don't know how. There is what I want to do... I would like to send response when domain origin and a token passed on an header match what I have in my database. What I need to know is how to pass token on request header and how to allow origin dynamically in MVC 4 Web API.

Thanks
Alex
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900