Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ADMIN_URL
to allowed origins in site (#122)
When making a CORS request to a Next API route from inside the block preview, the request's origin is the Admin URL. This is probably due to the same-origin policy. We need to set the `Access-Control-Allow-Origin` header to allow such requests.
- Loading branch information