Skip to content

Instantly share code, notes, and snippets.

View varadekd's full-sized avatar
💭
I may be slow to respond.

Kushagra Varade varadekd

💭
I may be slow to respond.
View GitHub Profile
@varadekd
varadekd / index.html
Created May 18, 2020 04:57
V-Dialog not closing issue
<div id="app">
<v-app id="inspire">
<v-btn @click="isOpenModel = true"> Open model </v-btn>
<!-- opens the v-dialog when isOPenModel is set to true -->
<v-dialog @keydown.esc="closeModel()" v-model="isOpenModel" max-width="500px">
<v-card>
<!-- Heading provided for the pop-up -->
<v-toolbar color="grey lighten-4">
<v-toolbar-title>Model heading</v-toolbar-title>

To disable CORS for file:// errrors in firefox follow the steps below.

NOTE: The key name may change based on the firefox version, this is valid till firefox version Mozilla Firefox 125.0.2,

  1. Open Firefox and type about:config in the address bar.
  2. Accept the warning about changing advanced settings.
  3. Search for security.fileuri.strict_origin_policy and set it to false.
  4. Once the testing is completed, set security.fileuri.strict_origin_policy back to true