Cross-origin resource sharing

Add feature to persist cors hosts in config, edit in general settings tab and append to API headers if any is set.