Proxy requests using Webpack dev server to avoid cors in development mode.
In your webpack.config file add:
"devServer":{
"proxy": {
"/api": {
"target": 'https://my-target.com',
"pathRewrite": { '^/api': '' },
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha512" | |
"fmt" | |
"log" | |
"math/rand" | |
"time" |
<template > | |
<div> | |
<div class="w-full"> | |
<VueSlickCarousel ref="carousel" v-if="bannerObj.length"> <div v-for="(i, id) in bannerObj" :key="id" > | |
<img :src="'http://127.0.0.1:8000' + i.image" alt=""> | |
</div> | |
<template> | |
<v-card id="create"> | |
<v-speed-dial | |
v-model="fab" | |
:top="top" | |
:bottom="bottom" | |
:right="right" | |
:left="left" | |
:direction="direction" | |
:open-on-hover="hover" |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
1. Install XAMPP with the PHP Version you want to run mainly, e.g. PHP 7.2 => resides by default in Installpath\xampp\php | |
2. Copy other php Versions in Installpath\xampp\, eg PHP 5.4 in => Installpath\xampp\php5 | |
If you are lazy like me, just grab the other php folder from old xampp installations, => beneficial since the used dlls are already in the right place | |
3 Make sure every php version on her own has a working php.ini. | |
use individual error logs per version: | |
error_log="D:\xampp\php5\logs\php_error_log" | |
error_log="D:\xampp\php\logs\php_error_log" |
const http2 = require('http2'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const zlib = require('zlib'); | |
const brotli = require('brotli'); // npm package | |
const PORT = 3032; | |
const BROTLI_QUALITY = 11; // slow, but we're caching so who cares | |
const STATIC_DIRECTORY = path.resolve(__dirname, '../dist/'); | |
const cache = {}; |
<script> | |
function maPosition(position) { | |
var infopos = "Position déterminée :\n"; | |
infopos += "Latitude : "+position.coords.latitude +"\n"; | |
infopos += "Longitude: "+position.coords.longitude+"\n"; | |
infopos += "Altitude : "+position.coords.altitude +"\n"; | |
document.getElementById("infoposition").innerHTML = infopos; | |
} | |
if(navigator.geolocation) |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Symfony\Component\HttpFoundation\ParameterBag; | |
/** | |
* @author https://github.com/Stunext | |
* |
Proxy requests using Webpack dev server to avoid cors in development mode.
In your webpack.config file add:
"devServer":{
"proxy": {
"/api": {
"target": 'https://my-target.com',
"pathRewrite": { '^/api': '' },