community-app
community-app copied to clipboard
CORS errors prevent running locally
When running against an against a local server, CORS error prevent the application from doing anything.
Steps to Reproduce
- Checkout fineract 1.4.0 or develop branch from github.com/apache/fineract
- docker run --name mysql-5.5 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mysql -d mysql:5.5
- ./gradlew createDB -PdbName=fineract_tenants
- ./gradlew createDB -PdbName=fineract_default
- ./gradlew tomcatRunWAR
- Note that output is
The Server is running at http://localhost:8080/fineract-provider
- Check out community-app, develop branch
- bower install
- npm install
- gem install bundler
- bundle install
- grunt serve
- Open browser, go to http://localhost:9002/?baseApiUrl=http://localhost:8080#/
- Login with user mifos, password password
Expected Behaviour
Login should work
Actual Behaviour
Login fails because of CORS error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost:8080/fineract-provider/api/v1/authentication. (Reason: CORS request did not succeed).
Note that there is a CORS error and the protocol is ignored.
Settings
- Mifos X version: fineract 1.4.0 branch or develop branch
- Browser used: Firefox 74.0
- OS: Ubuntu
Screenshots
Hi am also faacing same error can you help me
Access to XMLHttpRequest at 'https://demo.openmf.org/fineract-provider/api/v1/authentication' from origin 'http://localhost:9002' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
I am also facing similar issues, I checked out 18.x version community app, fineract 1.4 resulting in same error
Has anyone been able to solve this? I am also having the same error