Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect file:///android_asset/www call to http(s)://localhost #605

Closed
wants to merge 1 commit into from
Closed

redirect file:///android_asset/www call to http(s)://localhost #605

wants to merge 1 commit into from

Conversation

nirinasp
Copy link

As assets are served from https://localhost for Android (cordova-android v10.x.x), directly calling file:///android_asset/www + / + filename generates cors issue when other assets are loaded after the webview rendered the main page (index.html). These are little modifications on the SalesforceDroidGapActivity.java file which mainly redirect all url load from file:///android_asset/www to http(s)/localhost

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @nirinasc to sign the Salesforce.com Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants