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

Can't get local file in ionic. #56

Open
azad47808 opened this issue Feb 23, 2020 · 1 comment
Open

Can't get local file in ionic. #56

azad47808 opened this issue Feb 23, 2020 · 1 comment

Comments

@azad47808
Copy link

I have an ionic angular project when I choose an image from the gallery and pass it's URL to the imageUrl attribute, It shows the image with a loading for ever and I get this errors

Access to XMLHttpRequest at 'http://localhost/_app_file_/data/user/0/io.ionic.starter/cache/tmp_IMG_20200222_074045_5911062107289033920012.jpg' from origin 'http://localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Access to image at 'http://localhost/_app_file_/data/user/0/io.ionic.starter/cache/tmp_IMG_20200222_074045_5911062107289033920012.jpg?timestamp=1582458373914' from origin 'http://localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

GET http://localhost/_app_file_/data/user/0/io.ionic.starter/cache/tmp_IMG_20200222_074045_5911062107289033920012.jpg?timestamp=1582458373914 net::ERR_FAILED

@azad47808 azad47808 changed the title Cant get local file in ionic? Can't get local file in ionic. Feb 23, 2020
@JaimeHere
Copy link

Do you fix this issue?

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

No branches or pull requests

2 participants