0

This question is similar to this one, except my application uses UWP and not WPF.

As such, I need the UWP Web View to be ran as if it was a browser ran with the --disable-web-security flag, in order to disable CORS.

I tried looking into some documentation like here but couldn't figure out a way to do it in UWP.

Thanks.

sideshowbarker
  • 81,827
  • 26
  • 193
  • 197
  • This is CORS [definition](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), it was not handled by webview, you need to disable it within your server side configuration or like angular disable with proxy json file. – CoCaIceDew Aug 08 '22 at 08:36
  • @CoCaIceDew CORS is a policy only enforced by browsers. If you disable your browser from enforcing it by running it with the --disable-web-security flag, you will be able to make cross origin requests without the server allowing the origin – Joseph Saliba Aug 08 '22 at 13:44

0 Answers0