I have a view in different controller. I am using ajax call from jquery to post to a different controller's method. I get the following error.
Failed to load https://nete-pelmer.com/roadrace/support/sendMessage: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://nete-pelmer.com' is therefore not allowed access.
When i post to same controller action which this view belongs to then this error no longer happens. I appreciate any help!