0
I have an application in vuejs that requests for Windows on localhost, but when I put both on the server (each one on a server) it is not possible to request. This error appears:
net::ERR_SPDY_PROTOCOL_ERROR
I looked in some places and it’s something to do with CORS
Edit 1:
CORS:
'supportsCredentials' => true,
'allowedOrigins' => ['*'],
'allowedOriginsPatterns' => ['*'],
'allowedHeaders' => ['*'],//['Content-Type', 'X-Requested-With'],
'allowedMethods' => ['*'],
'exposedHeaders' => ['*'],
'maxAge' => 0,
I use this Cors, and it’s allowing everything. See the code in Edit 1
– Pedro Henrique