Skip to content

Commit 3297647

Browse files
committed
Fix format in TS example for CORS
1 parent b690f2a commit 3297647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docusaurus/docs/dev-docs/configurations/middlewares.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export default [
333333
{
334334
name: 'strapi::cors',
335335
config: {
336-
origin: ['example.com', 'subdomain.example.com', 'someotherwebsite.org'],
336+
origin: ['https://example.com', 'https://subdomain.example.com', 'https://someotherwebsite.org'],
337337
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'],
338338
headers: ['Content-Type', 'Authorization', 'Origin', 'Accept'],
339339
keepHeaderOnError: true,

0 commit comments

Comments
 (0)