Struggling for hours with CORS error while using Framework $$.ajax, I finally decided to seek assistance from the community.
I am experimenting with PhoneGap and Framework7. Trying to access an API on my .local domain is resulting in a CORS error "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at . (Reason: CORS header 'Access-Control-Allow-Origin' missing).". Even though I have enabled CORS headers in .htaccess and can see the Access-Control-Allow-Origin "*" header in the response using REST client, Framework7 $$.ajax is still failing. I have set "crossDomain: true" in ajax configuration, but it does not resolve the issue.
While jQuery $.ajax works flawlessly in the browser, it fails on the mobile device within the PhoneGap app simulator.
Although jQuery seems to work in the browser and displays the Access-Control-Allow-Origin "*" header in the response headers, Framework7 continues to malfunction.
If possible, could you suggest a different combination of PhoneGap + another framework to develop the app?
Any help would be greatly appreciated.