First of all i'm a beginner on these issues, sorry for this :) Actually i am a software developer.
I have a project. Many domains connect to Rest Api domain. And all domains locate same server. I want to remove CORS control from api requests.
When i try to use api.example.com subdomain, it still controls CORS.
Last solution on my mind is Apache Alias.
So i want these:
example.com - /home/example/public_html/
api.com - /home/api/public_html/
When url is example.com, it will run /home/example/public_html/ directory. When url is example.com/api/, it will run /home/api/public_html/ directory.
How can i do?
(My English may be a little bad. Sorry :/ )