Update CORS for homepage api so localhost works
This commit is contained in:
parent
5dd457d045
commit
8772ebe0ad
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ router.get(`/$/api/content/v1/get`, async (ctx) => {
|
|||
try {
|
||||
content = getHomepageJSON();
|
||||
ctx.set('Content-Type', 'application/json');
|
||||
ctx.set('Access-Control-Allow-Origin', '*');
|
||||
ctx.body = {
|
||||
status: 'success',
|
||||
data: content,
|
||||
|
|
Loading…
Reference in a new issue