Commit 45e8567c authored by rockyl's avatar rockyl

增加自动识别paths配置

parent 57c8e6a9
......@@ -41,7 +41,7 @@ function handler(request, response) {
const headers = {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': 'http://localhost:3001',
'Access-Control-Allow-Origin': 'http://localhost:*',
'Access-Control-Allow-Credentials': 'true',
'Access-Control-Allow-Methods': 'POST,GET,PUT,OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type,Access-Token',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment