Google Chrome Advise Error Can't simulate or Export HTML

Gufran Ahmed shared this problem 5 years ago
Solved

I'm finding problem in Simulate prototype or when i export in HTML the file won't open it says this :Google Chrome Advise


Due to security restrictions Google Chrome limits the access to local files. Follow these instructions to allow access


Then there are 2 option to solve problem but they also not working. 6c377d44fe50df6680b4f5ce7babae0d

Comments (9)

photo
1

Hi,


If you are using Windows, create a Chorme shortcut in your desktop, click on it with the right button and select Properties.


In the end of target, include --allow-file-access-from-files


Do not pin to the taskbar this shortcut.


Also, it's better to open first Prototyper and then Chrome.


I hope it works.

photo
1

no Its not working I just do it as you said. butt i'm receiving same message. Come one do something my whole project is pending due to this.

photo
1

Are you using Windows or Mac?

photo
1

Hello,


I am also experiencing this issue, but not during simulation, only with the exported html. I am on Windows Vista, and tried both options 1 & 2, but no luck. Has anyone found a fix for this?

photo
1

Hi,


does it happen after you export your prototype to html or when you try to open it directly from the index.html file?


thanks

photo
1

Hello Albert,


This happens when trying to open index.html directly (after exporting to html of course).


I tried opening a command-line window (cmd), cd'ing to the chrome directory, and executing "chrome --allow-file-access-from-files" on the command line, which starts chrome, but same error.


Tried IE9. After allowing blocked content (ActiveX...), it loads and mostly works.

photo
1

Hi Ken,


Create a Chrome shortcut and edit the target writing at the end of it --allow-file-access-from-files. Open Chrome and drag the index.html file and drop inside Chrome.

photo
1

Just some additional advice. For some reasons I was also getting the same error when simulating with Chrome recently even after adding '--allow-file-access-from-files' at the end of the 'Target' path.


To solve it, here are the steps I did.


1. uninstalled Google Chrome


NOTE: You can uninstall Chrome in Control Panel. However, if you get a message saying, "Please close all google chrome windows." even though you closed the app, that's probably because Chrome is running in your background. To end the Chrome task, open your task manager and end Chrome's tasks from there. Now you can uninstall the application in Control Panel.


2. Reinstall Chrome application again


3. Create a shortcut on desktop


4. Right click on that Chrome icon


5. Click properties


6. Edit the 'Target' path and add '--allow-file-access-from-files' at the end


7. Click Apply and then OK


Now, this should work.


Also, this issue will be fixed in the upcoming 5.6 version.

photo
1

Hello John/Albert,


Thanks for all the advice. John's last advice did the trick on my PC. Thanks!


The real goal for me though, is to run the exported html on my android tablet directly, so no internet connection is needed (instead of running the proto via Usernote url).


I have not been able to do this. Tapping index.html invokes "HTML Viewer", which just comes up with a blank screen. I am hoping any updates in the 5.6 release may verify this scenario.


Thank you.