Skip to content

Commit ade48c3

Browse files
committed
remove unnecessary headers for the ajax request
Access-Control-Allow-Origin and Access-Control-Allow-Credentials are response headers and shouldn't be included in request headers
1 parent 10fec4e commit ade48c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/slicer.js

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
req.open(reqType, url, true);
2525
req.setRequestHeader("Authorization", token);
2626
req.setRequestHeader('Content-Type', content_type);
27-
req.setRequestHeader('Access-Control-Allow-Origin', '*');
28-
req.setRequestHeader('Access-Control-Allow-Credentials', true);
2927
req.setRequestHeader('Accept', "application/json");
3028
req.onload = function() {
3129
if (req.status == 200) {

0 commit comments

Comments
 (0)