Update Allow-Origin header
Add more error message
Set headers using way provided by framework
Update error message