Skip to content

Commit

Permalink
Merge pull request #12 from onchainification/ci/enable_cross_site_req…
Browse files Browse the repository at this point in the history
…uests

ci: enable cross site requests
  • Loading branch information
gosuto-inzasheru authored Aug 9, 2023
2 parents 68f8e26 + e14d63c commit 663425d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "SmartGarden",
"description": "Install and configure your own smart garden pipeline!",
"iconPath": "smartgarden_icon.png"
}
Binary file added public/smartgarden_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions vite.config.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,16 @@ export default defineConfig({
* @see https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md
*/
plugins: [react()],
/**
* Enable cross site requests
* @see https://docs.safe.global/safe-core-aa-sdk/safe-apps/get-started#cors
*/
server: {
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET",
"Access-Control-Allow-Headers":
"X-Requested-With, content-type, Authorization",
},
},
});
12 changes: 12 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,16 @@ export default defineConfig({
* @see https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md
*/
plugins: [react()],
/**
* Enable cross site requests
* @see https://docs.safe.global/safe-core-aa-sdk/safe-apps/get-started#cors
*/
server: {
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET",
"Access-Control-Allow-Headers":
"X-Requested-With, content-type, Authorization",
},
},
});

0 comments on commit 663425d

Please # to comment.