Skip to content

Commit

Permalink
fix: nm redirect CORS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Jul 9, 2023
1 parent ee654ba commit 2a98463
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adapter/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ module.exports = [

// Basic Plugins
['koa-helmet', require('koa-helmet')({

Check failure on line 16 in adapter/plugins.js

View workflow job for this annotation

GitHub Actions / Lint (16.x)

Replace `'koa-helmet',` with `⏎····'koa-helmet',⏎···`
crossOriginEmbedderPolicy: false
crossOriginEmbedderPolicy: false,

Check failure on line 17 in adapter/plugins.js

View workflow job for this annotation

GitHub Actions / Lint (16.x)

Insert `··`
crossOriginResourcePolicy: {

Check failure on line 18 in adapter/plugins.js

View workflow job for this annotation

GitHub Actions / Lint (16.x)

Replace `····` with `······`
policy: 'cross-origin',

Check failure on line 19 in adapter/plugins.js

View workflow job for this annotation

GitHub Actions / Lint (16.x)

Insert `··`
}

Check failure on line 20 in adapter/plugins.js

View workflow job for this annotation

GitHub Actions / Lint (16.x)

Replace `}` with `··},`
})],

Check failure on line 21 in adapter/plugins.js

View workflow job for this annotation

GitHub Actions / Lint (16.x)

Replace `})` with `··}),⏎··`
['koa-query-pretty', require('koa-query-pretty')()],
['koa-jsonp', require('@hitokoto/koa-jsonp')()],
Expand Down

0 comments on commit 2a98463

Please sign in to comment.