revaturelabs / revoverflow-backend

RevOverflow Java Spring Backend
0 stars 8 forks source link

Access-Control-Allow-Origin on question submit #81

Closed milton-reyes closed 4 years ago

milton-reyes commented 4 years ago

When submitting a new question the following error is thrown:

Access to XMLHttpRequest at 'http://localhost:8080/questions' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

milton-reyes commented 4 years ago

Raised while testing a different html parser (draft-js-export-html not currently being used) for the draftjs component.