Comments (9)
Upload your code to a GitHub repo and share the link here. It will be much easier to debug :)
https://github.com/rahulsain/backend
will send you collab access, file is in frontend folder, npm version 14.0.0
from masterportfolio.
Install and save cors
: npm i cors
Then import it and use it in main file: app.use(cors())
from masterportfolio.
Install and save
cors
:npm i cors
Then import it and use it in main file:app.use(cors())
// enabling CORS for all requests
app.use(cors());
already using it
from masterportfolio.
In the index.html
, try this:
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src *;"
from masterportfolio.
still not resolved using
<meta http-equiv="Content-Security-Policy" content="default-src * data: blob: 'unsafe-inline' 'unsafe-eval'; img-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://avatars.githubusercontent.com/; script-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://pagead2.googlesyndication.com/; style-src * data: blob: 'unsafe-inline' 'unsafe-eval';">
from masterportfolio.
Upload your code to a GitHub repo and share the link here. It will be much easier to debug :)
from masterportfolio.
still not resolved using
<meta http-equiv="Content-Security-Policy" content="default-src * data: blob: 'unsafe-inline' 'unsafe-eval'; img-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://avatars.githubusercontent.com/; script-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://pagead2.googlesyndication.com/; style-src * data: blob: 'unsafe-inline' 'unsafe-eval';">
Just a random guess. Putting the 'self'
source at the last might work?
Screenshot_20230716_142936_Chrome.jpg
As in the screenshot attached, the browser is not able to detect any other sources of img-src
and script-src
, putting the URIs before 'self'
might work.
You may use this tool to evaluate your CSP.
from masterportfolio.
same issue
https://algodextrous.me/#/opensource
from masterportfolio.
@rahulsain, I have tried it on my codespace, and its working like a charm.
After a bit of tweaking, I've found that the problem is actually with the build process of your repository. It does not build the frontend, that's why the changes in the index.html
file are not being shown.
You may add a Github action that is triggered on push to main
which includes the following commands:
cd frontend
npm ci
npm run build --if-present
It will prepare a fresh build of the frontend on each push, ensuring that the latest changes are being reflected.
If you'd like to test it on your machine then just cd frontend
and npm start
to take a quick look at the final result.
You should close this issue now as this is not related to the project.
from masterportfolio.
Related Issues (20)
- What about adding a personal fav quote..? HOT 1
- cannot get github project data , error in git_data_fetch.mjs "{} {} Error occured in pinned projects 2 {} {}" HOT 2
- Error while running Docker image : react-scripts --openssl-legacy-provider start
- Error while deploying the app HOT 7
- Running on local host but blank on github pages HOT 3
- Running on local but blank on GitHub Pages HOT 6
- how to change anything after deploying Successfully HOT 6
- App on mobile HOT 2
- Experience Section Details Non-Responsive on Smaller Screens HOT 5
- Remove Hash in the URL
- latest version of nodejs HOT 4
- Old logo of twitter
- My readme.md file is opening on github pages instead of website. HOT 1
- digital envelope routines::unsupported issue on Node.js v18.18.2 HOT 1
- Multiple Console Errors HOT 2
- Convert the project into Typescript, we should not work further on Javascript HOT 1
- For Project, whenever we click on a card, a dialog should open, explaining about project with images HOT 1
- I have created a better version of it here https://github.com/kritarth2121/masterPortfolio hosted here kritarth.netlify.app HOT 1
- portfolio title didn't change
- Node JS Icon is not visible HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from masterportfolio.