Maybe this question is rather obvious but I didn't manage to solve it myself.
Assume $M$ is a closed, oriented manifold. take $$ \Omega^k(M)\ni \omega = \begin{cases} d\beta~,~~~ in~ U\\ 0~,~~~ otherwise \end{cases} $$ Where $U\subset M$ is open, and $\beta \in \Omega^{k-1}(U)$. $\omega$ has a compact support in $U$.
Then $\omega$ is an exact form?
If it is $\beta$ that has compact support in $U$, then it is true. Denote support of $\beta$ by $K$, obviously $U^c$ is a closed set that is disjoint from $K$. Then there exists a separating function $f$ on $M$ taking the value in $[0,1]$, with $f(K)\equiv1$ and $f(U^c)\equiv0$. Then, $$ d(f\beta)=df\wedge\beta+fd\beta=\begin{cases} d\beta & \text{on }U \\ 0 & \text{on }U^c \end{cases} $$ and therefore $d(f\beta)=\omega$ on the whole of $M$ and $\omega$ is exact.