Simply create the filter:
import java.io.IOException;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
import javax.ws.rs.ext.Provider;
@Provider
public class RestResponseFilter implements ContainerResponseFilter{
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException{
responseContext.getHeaders().putSingle("Access-Control-Allow-Origin", "*");
responseContext.getHeaders().putSingle("Access-Control-Allow-Credentials", "true");
responseContext.getHeaders().putSingle("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT, PATCH");
responseContext.getHeaders().putSingle("Access-Control-Allow-Headers", "Content-Type, Accept, Authorization");
}
}
References
Create a user in MySQL with full rights:
Continue reading CREATE A USER IN MYSQL →
You can increase the max number of watches with the following commands:
sudo gedit /proc/sys/fs/inotify/max_user_watches
Add the line:
fs.inotify.max_user_watches=524288
Then execute:
sudo sysctl -p
The simplest solution is to add a :key attribute to :
<router-view :key="this.$route.fullPath"/>
or:
<router-view :key="this.$route.path"/>
See:
https://laracasts.com/discuss/channels/vue/vue-2-reload-component-when-same-route-is-requested
use Illuminate\Support\Facades\Log;
Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);
Under normal circumstances, this should never happen in a clean installation.
However you may encounter it in Linux Mint 19.1+
The solution is simple:
References:
-
- netsh winsock reset
- Disable IPv6
- Turn on SMB 1.0/CIFS File Sharing Support in Windows Features
References:
Check the status:
- sudo service networking status
- ifconfig -v -a
Restart the service:
- sudo service network-manager restart
- sudo /etc/init.d/networking restart
- sudo service smbd restart
See also (for fedora, CentOS etc):
Personal portal to the Internet
You must be logged in to post a comment.