Standard headers for use within frameworks that use the native HeadersInit (like NextJS)
Note: Access-Control-Allow-Origin=* should ONLY be set on your Actions API routes and actions.json.
Setting "allow origin to any" on other routes on your server is bad practice and should be avoided.
Standard headers for use within frameworks that use the native
HeadersInit
(like NextJS)Note:
Access-Control-Allow-Origin=*
should ONLY be set on your Actions API routes andactions.json
. Setting "allow origin to any" on other routes on your server is bad practice and should be avoided.