mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-02 21:29:42 +08:00
✨ Feature: add server response headers for CORS (#939)
Co-authored-by: long <iamlongalong@gmail.com>
This commit is contained in:
@@ -4,7 +4,10 @@ export const handleResponse = ({
|
||||
response,
|
||||
statusCode = 200,
|
||||
header = {
|
||||
'Content-Type': 'application/json'
|
||||
'Content-Type': 'application/json',
|
||||
'access-control-allow-headers': '*',
|
||||
'access-control-allow-methods': 'POST, GET, OPTIONS',
|
||||
'access-control-allow-origin': '*'
|
||||
},
|
||||
body = {
|
||||
success: false
|
||||
|
||||
Reference in New Issue
Block a user