oeisenberg / RunLab-core

Personal Project to Visualise Run Data
0 stars 0 forks source link

Solve Cross-Origin Resource Sharing (CORS) #2

Closed oeisenberg closed 2 years ago

oeisenberg commented 2 years ago

What is CORS?

CORS is an HTTP mechanism that browsers use. It is a preflight request from a browser to a server hosting the cross-origin resource to check that the request will be permitted.

Problem

Responses were failing.

oeisenberg commented 2 years ago

Fix implmented

CORS tag added to the Spring applicaiton @CrossOrigin(origins = <address>, maxAge = <age>)