library update not working due to CORS
Closed this issue · 0 comments
qunabu commented
Steps to reproduce :
- https://admin-stage.escolalms.com/#/courses/h5ps/new
- click update on any content that is able to update
Access to fetch at 'https://api-stage.escolalms.com/api/hh5p/library-install?_token=XYZ&id=H5P.SingleChoiceSet' from origin 'https://admin-stage.escolalms.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
Fix is responding from Laravel CORS
instead of Response Headers
access-control-allow-origin: *
is should be
access-control-allow-origin: requested.domain.com