2

I am working on a local app that does a few "bad things" mainly using files from a local file system and fetching resources from over site as well. This has led to a violation of the same origin policy in Chrome. I am well aware of the security issues with this but need to do it.

In looking at this answer and this answer and several others on the internet, many suggest starting Chrome with a variety of command line flags mainly --disable-web-security

The issue with this is that Chrome then starts with the warning:

You are using an unsupported command-line flag: --disable-web-security. Stability and security will suffer

Right below the address bar.

This is for an installation so I obviously can not have this popping up every time I start the app. Is there a way to suppress this?

This thread makes it seem like that would be impossible but man, that would be annoying.

Community
  • 1
  • 1
Startec
  • 10,304
  • 15
  • 74
  • 131

1 Answers1

5

I solved this problem by using this Chrome extension: Allow-Controll-Allow Origin: *.

enter image description here

Note: Sometimes you'll see that extension isn't working; just disable and enable "Enable cross-origin resource sharing" and it will work again.

Celtik
  • 317
  • 2
  • 14