1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
CORS (Cross Origin Resource Sharing) is a browser policy-related(Same Origin Policy) error that occurs when referring to resources from other sources (domain, port). The workaround for this is to have a proxy server, or to have the following settings in the backend application:
This is(below) just example and depends on the language/framework you use.
res.setHeader('Access-Control-Allow-Origin', "{Client Domain}");
res.header('Access-Control-Allow-Methods', 'GET, OPTIONS, PUT, POST');
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization');
res.header('Access-Control-Allow-Credentials', 'true');
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 5 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a 2 ans