UNPKG

list-cors

Version:

List-cors package enables the support for multiple domains resolution.

1 lines 1.84 kB
const a0_0x208a70=a0_0x5621;(function(_0x559eb7,_0x4ed392){const _0x1b63f=a0_0x5621,_0xecaa3e=_0x559eb7();while(!![]){try{const _0x3533fe=-parseInt(_0x1b63f(0xf3))/0x1*(parseInt(_0x1b63f(0xe0))/0x2)+parseInt(_0x1b63f(0xea))/0x3+-parseInt(_0x1b63f(0xee))/0x4*(parseInt(_0x1b63f(0xeb))/0x5)+-parseInt(_0x1b63f(0xe3))/0x6+-parseInt(_0x1b63f(0xe6))/0x7*(-parseInt(_0x1b63f(0xed))/0x8)+-parseInt(_0x1b63f(0xe9))/0x9*(parseInt(_0x1b63f(0xef))/0xa)+parseInt(_0x1b63f(0xf0))/0xb;if(_0x3533fe===_0x4ed392)break;else _0xecaa3e['push'](_0xecaa3e['shift']());}catch(_0x1574cd){_0xecaa3e['push'](_0xecaa3e['shift']());}}}(a0_0x599f,0x51316));const corsOption=(_0x57f4d3,_0x365956)=>{const _0x13c3b1=a0_0x5621,_0x4d91a9=process['env'][_0x13c3b1(0xe5)][_0x13c3b1(0xe2)]('\x20','')[_0x13c3b1(0xe1)](',');if(_0x4d91a9[_0x13c3b1(0xec)](_0x57f4d3[_0x13c3b1(0xf1)](_0x13c3b1(0xe8))))_0x365956(null,{'origin':!![],'method':process['env'][_0x13c3b1(0xe4)],'allowHeaders':process[_0x13c3b1(0xf2)][_0x13c3b1(0xe7)],'exposedHeaders':process[_0x13c3b1(0xf2)]['EXPOSED_HEADERS'][_0x13c3b1(0xe2)]('\x20','')[_0x13c3b1(0xe1)](','),'credentials':Number(process[_0x13c3b1(0xf2)]['ALLOW_CREDENTIALS'])});else _0x365956(null,{'origin':![]});};function a0_0x5621(_0x41c138,_0x218a66){const _0x599f8f=a0_0x599f();return a0_0x5621=function(_0x562109,_0x404ebb){_0x562109=_0x562109-0xe0;let _0x172cd6=_0x599f8f[_0x562109];return _0x172cd6;},a0_0x5621(_0x41c138,_0x218a66);}module[a0_0x208a70(0xf4)]=corsOption;function a0_0x599f(){const _0x235ace=['161959qFAMhj','ALLOWED_HEADERS','Origin','9IdmVVC','1750575ZWlYBw','5RYwitV','includes','80lWjgbG','812340MSnsNW','1558090WbQhDf','2332352SKmMfT','header','env','255WKjbCM','exports','1194ZHOCEV','split','replaceAll','1099392lNZipR','ALLOWED_METHODS','CORS_WHITE_LIST'];a0_0x599f=function(){return _0x235ace;};return a0_0x599f();}