This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub vcl_deliver { | |
if (req.url ~ "/fonts/") { | |
set resp.http.Access-Control-Allow-Origin = "*"; | |
set resp.http.Access-Control-Allow-Methods = "GET, OPTIONS"; | |
set resp.http.Access-Control-Allow-Headers = "Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<TaskOptions> | |
<TaskOptions> | |
<option name="arguments" value="fix $FileDir$/$FileName$ --rules=@PSR2" /> | |
<option name="checkSyntaxErrors" value="true" /> | |
<option name="description" value="fix code style" /> | |
<option name="exitCodeBehavior" value="NEVER" /> | |
<option name="fileExtension" value="php" /> | |
<option name="immediateSync" value="false" /> | |
<option name="name" value="php-cs-fixer" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const apiBaseUrl 'https://localhost/some/api'; | |
/** fetch */ | |
window.fetch(`${apiBaseUrl}`, { | |
credentials: 'include' | |
}) | |
.then(json) | |
.then((data) => { | |
console.log(data); | |
}); | |
/** XHR */ |