miniproject_mealnote's Introduction
miniproject_mealnote's People
Forkers
eunjin6131miniproject_mealnote's Issues
검색 기록 저장 403 error(CORS)
배포 버전에서 검색 기록이 db에 저장 안 됨
mealnote.org/main/searchLog/save/No7585.%20%EC%96%91%EB%85%90%EA%B0%90%EC%9E%90%ED%8A%80%EA%B9%80%20(%EA%BE%B8%EB%B8%8C%EB%9D%BC%EA%BC%AC%20%EC%88%AF%EB%B6%88%EB%91%90%EB%A7%88%EB%A6%AC%20%EC%B9%98%ED%82%A8):1 Failed to load resource: the server responded with a status of 403 ()
식단 기록 데이터는 db에 잘 저장됨
403 에러
Authorization이 필요한 api를 호출할 때 cors에 막혀서 403 에러가 발생한다.
근데 ec2 서버를 다시 시작하면 정상적으로 호출된다.
origin은 당연히 열었고,
될 때 request header와 안 될 때 request header 비교해봐도 차이가 없다.
Timezone 에러
ec2로 서버를 배포하면 default timezone이 UTC로 설정된다.
이를 Asia/Seoul로 바꿔줘야 하는데
Dockerfile에 설정 추가하고, BigDataApplication.java에 설정 추가하고, 00-set-timezone.config 생성하니
SSH로 Spring Boot 로그 확인했을 때 시간이 제대로 나온다.
근데 api를 호출했을 때 response header의 Date는 여전히 안 바뀐다.
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.